I want to know how to implement CSP on Magento 2 with GTM. The site has multiple stores. Tried to google but was unable to find any concrete result. Implimenting a Content Security Policy Magento 1.9.x

  • have you implement this?
    – Kim Na Na
    Feb 4, 2020 at 7:18
  • @kimnana not yet. Feb 5, 2020 at 11:49
  • For now i have added this in .htaccess . but still finding for best solution
    – Kim Na Na
    Feb 7, 2020 at 9:00

1 Answer 1


I was able to add CSP by modifying Magento (2.2.11) Configuration > General > Web > Upgrade Insecure Requests. I tested using https://securityheaders.com/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.