How can i pass the csp on this extension?

Joined
May 17, 2023
Messages
1
Reaction score
0
i am trying to develop a chrome extension for a website and for that i am trying to add jquary to the site.
but when I try to add the jquery library as cdn with dom, I get an error like this:

Refused to load the script 'https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost:* http://127.0.0.1:*". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.


I tried changes to the manifest file.I tried to create meta tag and edit cps with this tag.But I did not succeed...
 
Joined
Nov 13, 2020
Messages
302
Reaction score
38
We're all glad this is the norm. I don't want any random just putting things on my website. You could modify the page in your browser.
 
Joined
Jul 3, 2022
Messages
93
Reaction score
23
Why not to add the jQ library from the extension's folder? What is the problem with it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top