Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSP Whitelist Support #1097

Closed
PivitParkour94 opened this issue Jan 29, 2021 · 0 comments
Closed

CSP Whitelist Support #1097

PivitParkour94 opened this issue Jan 29, 2021 · 0 comments

Comments

@PivitParkour94
Copy link

When running Magento 2.3.6 with the Magento_CSP module enabled the external resources break because there is no csp_whitelist.xml defined.

Is this something you are planning on adding support for?

Should be as simple as

<?xml version="1.0" encoding="UTF-8"?>
<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="img-src">
            <values>
                <value id="mailchiimp_logo" type="host">ebizmarts-website.s3.amazonaws.com</value>
            </values>
        </policy>
    </policies>
</csp_whitelist>

Docs: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/security/content-security-policies.html

I haven't extensively gone through the module and found all external resources, the above is an example csp to get the ball rolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants