google maps api script does load due to content security policy

后端 未结 3 653
滥情空心
滥情空心 2020-12-16 00:10

I am making a google chrome extension where I want to use google maps. The problem is that when I run my script then it gives me this error

Refused to load s         


        
3条回答
  •  忘掉有多难
    2020-12-16 00:58

    Content Security Policy keeps you in safe from XSS attacks. But it means you need to whitelist external resources explicitly. You can make it by providing additional HTTP headers or by tag like:

     
    

提交回复
热议问题