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

Fix to CSP-Violation for redoc usage #59

Merged
merged 2 commits into from
Dec 6, 2020
Merged

Conversation

mashpie
Copy link
Contributor

@mashpie mashpie commented Dec 5, 2020

Swagger works (.../index.html) but redoc (.../docs.html) errors complaining about CSP-Violation like:

Failed to construct 'Worker': Access to the script at 'blob: [...]

As per Redocly/redoc#764, adding worker-src 'self' blob:; to CSP-headers resolves that.

Besides, I just ran into an issue with undefined children (fastify-oas/lib/openapi/index.js:9:16), which is out of the scope of this PR and should be investigated further, I guess. But had to "workaround" to get that CSP fix in place.

@mashpie mashpie changed the title Fix to CSP-Violation Fix to CSP-Violation for reduce usage Dec 5, 2020
@mashpie mashpie changed the title Fix to CSP-Violation for reduce usage Fix to CSP-Violation for redoc usage Dec 5, 2020
@SkeLLLa SkeLLLa merged commit 6460989 into SkeLLLa:master Dec 6, 2020
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

Successfully merging this pull request may close these issues.

2 participants