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

Content-Security-Policy (CSP) Issues #19

Open
prinsss opened this issue Apr 13, 2024 · 0 comments
Open

Content-Security-Policy (CSP) Issues #19

prinsss opened this issue Apr 13, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@prinsss
Copy link
Owner

prinsss commented Apr 13, 2024

This script relies on modifying window.XMLHttpRequest to install network interceptors and therefore needs to be injected into the "page" context rather than "content" context.

The difference is that "page" context has access to the window object of the twitter.com page, while "content" context does not. See: Inject scripts into different contexts.

However, the "page" context is subject to the Content-Security-Policy (CSP) of the page, which may prevent the userscript from running. This is the case with Twitter's CSP.

This issue is opened to discuss potential solutions to this problem.

Related issues:

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

No branches or pull requests

1 participant