Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSP warning firebug

Im developing a game with JavaScript and canvas. And recently since i implemented clicks i have been receiving this message in firebug:

CSP WARN: allow directive is deprecated, use the equivalent default-source directive instead

Its not affecting the game at all, but i was wondering what it meant? and could it affect my game eventually?

I found this online, but i can't make any sense of it, and im not totally sure if its talking about the same message that im receiving

LINK

Thanks

like image 634
Tom Burman Avatar asked Jul 10 '26 09:07

Tom Burman


1 Answers

CSP is Content Security Policy, these are HTTP headers that can for example restrict JavaScript execution in the browser. The warning points out a non-critical problem with the policy.

To look at the headers you could use curl -I on your server. The "Content-Security-Policy", "X-Content-Security-Policy" and "X-WebKit-CSP" fields are relevant.

Since you don't know about CSP I assume you are not administrating the web server, you might want to talk to the person in charge.

like image 196
Michael W Avatar answered Jul 11 '26 23:07

Michael W



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!