In case if you get titled error, you can follow the below process.
Please add a file in your module or any existing module in app/code directory
Create the file app/code/Namespace/Module/etc/csp_whitelist.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
<?xml version="1.0"?> <!-- /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp/etc/csp_whitelist.xsd"> <policies> <policy id="script-src"> <values> <!--CDN--> <value id="cloudflare" type="host">*.cloudflare.com</value> <!--Google--> <value id="google-analytics" type="host">www.google-analytics.com</value> <!--Functions--> <value id="trustedshops" type="host">*.trustedshops.com</value> <value id="usercentrics" type="host">*.usercentrics.eu</value> </values> </policy> <policy id="style-src"> <values> <!--CDN--> <value id="cloudflare" type="host">*.cloudflare.com</value> <!--Design--> <value id="typekit" type="host">*.typekit.net</value> <!--Functions--> <value id="trustedshops" type="host">*.trustedshops.com</value> <value id="usercentrics" type="host">*.usercentrics.eu</value> </values> </policy> <policy id="img-src"> <values> <!--CDN--> <value id="cloudflare" type="host">*.cloudflare.com</value> <value id="klarna-base" type="host">https://cdn.klarna.com</value> <!--Payments--> <value id="paypal" type="host">*.paypal.com</value> <!--Video--> <value id="vimeocdn" type="host">*.vimeocdn.com</value> <value id="youtube-img" type="host">https://s.ytimg.com</value> <!--Functions--> <value id="usercentrics" type="host">*.usercentrics.eu</value> </values> </policy> <policy id="connect-src"> <values> <!--CDN--> <value id="cloudflare" type="host">*.cloudflare.com</value> <!--Payments--> <value id="paypal" type="host">*.paypal.com</value> </values> </policy> <policy id="font-src"> <values> <!--CDN--> <value id="cloudflare" type="host">*.cloudflare.com</value> <!--Design--> <value id="typekit" type="host">*.typekit.net</value> <!--Functions--> <value id="trustedshops" type="host">*.trustedshops.com</value> </values> </policy> </policies> </csp_whitelist> |
Please follow the below methods to get the attribute options...
Update product attribute value programmatically in Magento 2 . [crayon-628775da178f1522707830/]...
If you want restrict customer to checkout based on your...
Sometime we need to set html data without load or...
If you want get query string params in controller file,...