New answers tagged


You need to set up CSP in your website. Check this Magento CSP doc Create csp_whitelist.xml in your module loading the second website inside etc folder <?xml version="1.0"?> <csp_whitelist xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd&...


alright you just need to update .env for variable CUSTOM_ORIGIN_EXACT_DOMAIN # vi .env # update value CUSTOM_ORIGIN_EXACT_DOMAIN="" # now run yarn buildpack create-custom-origin ./ # Acquired custom hostname and SSL cert for Development server will run on port 8626 and staging server will run on port 9626 # Run server ...


set the cross-origin in app/etc/env.php by changing the following parameter. 'x-frame-options' => 'CROSS-ORIGIN', after changing flush your magento cache php bin/magento c:f


Go to Content->Design->configurations Click on edit link against your website. apply a different them for each website. now run these commands. php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento c:f

Top 50 recent answers are included