Chrome extension failed to load javascript due to url related to protocol

I am developing a Chrome extension where I load a javascript file from an external domain that I don't have access to. This javascript in it loads other javascript with a relative protocol method //exemple.com/javascript.js

. And the problem is I am getting the error

Failed to load resource: net :: ERR_FAILED chrome-extension: //exemple.com/javascript.js

PS My manifest looks like this "content_security_policy": "script-src 'self' https://example.com 'unsafe-eval'; object-src 'self' https://example.com"

+3
javascript google-chrome google-chrome-extension


source to share


No one has answered this question yet

Check out similar questions:

2853
Get the current url using JavaScript?
2366
Encode url in JavaScript?
1895
Open the url in a new tab (not a new window) using JavaScript
29
Content Security Policy: Unable to load Google API into Chrome extension.
nine
Chrome CORS extension with manifest version 2
6
chrome APP: google maps, Script download was denied because it violates the following content security policy directive
4
Facebook JavaScript API for google chrome extension
2
How to load external content_script in google chrome extension?
2
Chrome app refused to execute inline script because it violates the following content security policy directive
0
JavaScript SDK JavaScript not working with chrome extension



All Articles
Loading...
X
Show
Funny
Dev
Pics