X
Tryk her for at gå til webstedets mobilversion.

Supportforum

Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified

Skrevet

I have specified header

header("Content-Security-Policy: default-src * 'unsafe-inline' 'unsafe-eval';");

?> Why Firefox is still showing me this errors?

I have specified header <?php header("Content-Security-Policy: default-src * 'unsafe-inline' 'unsafe-eval';"); ?> Why Firefox is still showing me this errors?
Vedhæftede skærmbilleder

Valgt løsning

By any chance, do you have a Google Map embedded in that page? I ask because similar messages were mentioned in this thread:

https://www.reddit.com/r/firefox/comments/fpptyj/firefox_content_security_policy_console_output/

Læs dette svar i sammenhæng 1
Citér

Yderligere systemdetaljer

Program

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0

Yderligere information

Luk
jscher2000
  • Top 10 Contributor
8957 løsninger 73398 svar

Do you have a script-src directive anywhere? If not, I wonder whether those messages could be coming from an add-on.

Do you have a '''script-src''' directive anywhere? If not, I wonder whether those messages could be coming from an add-on.
Fandt du dette nyttigt?
Citér

Spørgsmålsstiller

Hello, thanks for your time! What do you mean by that? I have few <script src=...></script> in my document body. And inline js too.

And also I have <meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'"> in the document's <head>

Why do I see this warnings anyway? I'd like to get rid of them.

Hello, thanks for your time! What do you mean by that? I have few <script src=...></script> in my document body. And inline js too. And also I have <meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'"> in the document's <head> Why do I see this warnings anyway? I'd like to get rid of them.
Fandt du dette nyttigt?
Citér
jscher2000
  • Top 10 Contributor
8957 løsninger 73398 svar

Valgt løsning

By any chance, do you have a Google Map embedded in that page? I ask because similar messages were mentioned in this thread:

https://www.reddit.com/r/firefox/comments/fpptyj/firefox_content_security_policy_console_output/

By any chance, do you have a Google Map embedded in that page? I ask because similar messages were mentioned in this thread: https://www.reddit.com/r/firefox/comments/fpptyj/firefox_content_security_policy_console_output/
Fandt du dette nyttigt? 1
Citér

Spørgsmålsstiller

Yes! Google Maps iframe. Thanks!

Yes! Google Maps iframe. Thanks!
Fandt du dette nyttigt?
Citér
Stil et spørgsmål

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.