-
Notifications
You must be signed in to change notification settings - Fork 648
Fix CSP error - script-src directive #2521
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
Conversation
Attempt to fix `Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).` presumably related to this commit rust-lang@38758b3
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @sgrif (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Hm, where did you find that error? I couldn't see that on the top page. |
@JohnTitor Sorry, this PR is definitely missing some context.. |
@JohnTitor Basically, this is when you reach the detail view of any given crate. Before the chart was loaded and displayed next to the download statistics. |
Uhm, indeed 38758b3 touched CSP directive but it isn't deployed to the production yet. And seems the inline error is coming from your browser extension(s) since your private window on Chrome doesn't complain (these errors are by external resources, to me) but Firefox does. |
@JohnTitor so it might simply be that your commit will fix that issue when deployed to production 🚀 ! |
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.
Ah got it! So, this looks good to me :)
Thanks a ton @JohnTitor 🙇 ! |
r? @jtgeibel since this( |
☔ The latest upstream changes (presumably #2480) made this pull request unmergeable. Please resolve the merge conflicts. |
Thanks for the PR @yamafaktory. I'm in the process of deploying the previous CSP changes and in staging they appear to resolve the CSP errors shown in the console. So fortunately it appears that adding Thanks again! |
@jtgeibel cool! Thanks for the feedback! |
Attempt to fix
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).
presumably related to this commit 38758b3cc/ @JohnTitor