QuestionQ67

VerifiedSetup/configuring Adobe Commerce Cloud

An Adobe Commerce developer added an iframe and a JavaScript library from an external domain to the website. They subsequently saw this console error:

Refused to frame [URL] because it violates the Content Security Policy directive.

To resolve this error, which policy IDs should be added to the csp_whitelist.xml file?

Explanation

frame-src defines the permitted sources for <frame> and <iframe> elements, while script-src defines the permitted sources for JavaScript <script> elements. The external domain therefore requires whitelisting under both policies.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!