Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Chrome Extension Javascript content_security_policy Manifest 3

I just started working with chrome extensions and javascript and saw that everyone suggests to use Manifest version 3 to start off. I wanted to implement firebase into my extension and in the old Manifest version 2 i needed to put in this:

"content_security_policy": "script-src 'self' https://cdn.firebase.com https://apis.google.com https://www.gstatic.com; object-src 'self'"

to make everything work. But this section has changed now in Manifest version 3. Its supposed to look similar to this:

"content_security_policy": {
    "extension_pages": "...",
    "sandbox": "..."
  },

but i can not make it work :/

like image 443
mr_ying Avatar asked Oct 26 '22 15:10

mr_ying


1 Answers

This tuto here to may help you. It worked for me.

like image 72
Alexandre Cavalcante Avatar answered Nov 10 '22 00:11

Alexandre Cavalcante