The HTTP Content-Security-Policy response header #4721
Replies: 3 comments 1 reply
-
I would need to read up on that topic, as I know next to nothing about it. Whats the csp.xml file you want to request in one of the files? How should that look like? |
Beta Was this translation helpful? Give feedback.
-
Nice, I’ve had this on my todo list to investigate for some time. My ideal features would be to have different headers for frontend, frontend checkout, admin, and admin checkout. It would also be nice to have a helper method to output hashed / nonce script blocks, but we also have so many |
Beta Was this translation helpful? Give feedback.
-
Some things:
|
Beta Was this translation helpful? Give feedback.
-
Based on SecurityHeaders, OpenMage does not have any CSP headers implemented, and the overall page rating is D. The only resource that somewhat addresses this issue is Netalico's Magento 1 CSP module, which I found on GitHub.
Unlike Magento 2, there is no native solution for this. Shouldn't we implement a Mage_Csp addon for OpenMage, or extend it within the Mage_Core namespace?
I've just quickly implemented a simple version of this. What's your opinion?
081d8e3
Beta Was this translation helpful? Give feedback.
All reactions