soranoo / next-google-adsense

Add Google AdSense to your Next.js app.
MIT License
18 stars 7 forks source link

Refused to execute script from 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXXXXXXXXXXXX' because its MIME type ('image/gif') is not executable. #10

Open axelraymundo opened 1 day ago

axelraymundo commented 1 day ago

Ads won't display and I think this is the reason.

If I open the url it's just a pixel but if I refresh it it becomes a script. Any idea how to fix this?

soranoo commented 1 day ago

Try:

Ref: https://stackoverflow.com/questions/69381528/refused-to-execute-script-because-its-mime-type-image-gif-is-not-executable