New answers tagged

0

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="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd&...


1

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


0

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


0

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