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

Refused to run the JavaScript URL because it violates the Content Security Policy directive #1

Open
darshna09 opened this issue Oct 4, 2024 · 0 comments

Comments

@darshna09
Copy link

In our application we recently removed unsafe-inline from the CSP headers. With that change we are getting error from the file iframe.js at line 382

355: var iframeText = '<iframe id="' + internalID + '" name="' + internalID +
                '" src="javascript:\'<html></html>\'"';

CSP directive is blocking the use of javascript: URLs within the src attribute of the iframe, as well as the use of inline JavaScript.

Is there any plan of fixing of the issue?

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

No branches or pull requests

1 participant