Answer the question
In order to leave comments, you need to log in
How to make Chrome extension requests available to Firebase?
I develop extensions for chrome working with Firebase. During the tests, everything works fine, requests for editing data are sent and processed correctly (By tests, I mean working with the page through the browser and file system). But after unpacking the extension into chrome itself, nothing works, the browser gives an error:
Refused to load the script 'https://www.gstatic.com/firebasejs/4.3.1/firebase.js' because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:".
"permissions": [
"https://console.firebase.google.com/*",
"https://clipsync-xxxx.firebaseio.com/",
"https://www.gstatic.com/firebasejs/4.3.1/firebase.js",
"https://www.gstatic.com/",
"https://firebaseio.com",
"https://www.googleapis.com",
"clipboardWrite",
"clipboardRead"
]
<script src="https://www.gstatic.com/firebasejs/4.3.1/firebase.js"></script>
<script type="text/javascript" src="firebase.js"></script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question