-
Notifications
You must be signed in to change notification settings - Fork 0
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
🔖 release 0.8.1 #78
🔖 release 0.8.1 #78
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@annashamray @Coperh I'm trying out the CSP changes to fix the redoc schema (with Objects API). But it doesn't seem to work?
Content-Security-Policy: The page’s settings blocked a script (script-src-elem) at https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js from being executed because it violates the following directive: “script-src 'self' 'unsafe-inline'”
Also it's kind of unfortunate we need 'unsafe-inline'
for both script-src and style-src, because having those enabled kind of defeats the purpose of using CSP, but if there's not other way to get redoc to work, than that will have to be like that I guess
EDIT: thought this was also part of the release/0.8.1 branch (which it isn't yet), though with main
it doesn't seem to work either
@stevenbal Did you add the sidecar to the spectacular settings?
https://drf-spectacular.readthedocs.io/en/latest/faq.html#my-swagger-ui-and-or-redoc-page-is-blank |
@stevenbal I agree with you about |
I see a number of issues related to csp in drf-spectacular github (I think this issue is quite promising tfranzel/drf-spectacular#1241 ) but it's unclear if they actually plan to implement it |
@stevenbal I've checked it with Objects API, it works for me (after you add |
@annashamray ah I didn't check that, in that case all good 👍 |
89acd59
to
e44275d
Compare
No description provided.