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

Parser fails with strict Content Security Policy (CSP) #1072

Open
danielannan17 opened this issue Dec 20, 2024 · 1 comment
Open

Parser fails with strict Content Security Policy (CSP) #1072

danielannan17 opened this issue Dec 20, 2024 · 1 comment

Comments

@danielannan17
Copy link

When using the parser under a strict CSP, the page fails to load due to its use of the Function() constructor.

The error given is:
Uncaught EvalError: call to Function() blocked by CSP

This occurs with the following CSP configuration
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self';

Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this 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