Content Security Policy: The page's settings blocked the loading of a resource

前端 未结 6 622
梦毁少年i
梦毁少年i 2020-11-30 01:44

I am using CAPTCHA on page load, but it is blocking because of some security reason.

I am facing this problem:

    Content Security Policy: The page\'s sett         


        
6条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 01:59

    I managed to allow all my requisite sites with this header:

    header("Content-Security-Policy: default-src *; style-src 'self' 'unsafe-inline'; font-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' stackexchange.com");                    
    

提交回复
热议问题