Home > database >  mapbox and cloudinary images are blocked and appear blank how can i fix this?
mapbox and cloudinary images are blocked and appear blank how can i fix this?

Time:02-01

these are the errors i get

https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js blocked script-src-elem https://res.cloudinary.com/dir8262l3/image/upload/v1642925674/YelpCamp/zcfzlvxrw2bakr7xh7t9.jpg blocked img-src campgrounds:154 https://res.cloudinary.com/dir8262l3/image/upload/v1642928841/YelpCamp/ugvpjsw6nftpufhhf9xo.jpg blocked img-src campgrounds:154 https://res.cloudinary.com/dir8262l3/image/upload/v1643223219/YelpCamp/peoctzytgriobcl6kv73.jpg blocked img-src campgrounds:154 https://res.cloudinary.com/dir8262l3/image/upload/v1643224855/YelpCamp/njcbt6dcyaijaqonwd40.jpg blocked img-src campgrounds:154 https://res.cloudinary.com/dir8262l3/image/upload/v1643597847/YelpCamp/xqmfr3ievna8wqbcn35q.jpg blocked img-src campgrounds:154

how can i fix this

CodePudding user response:

I did a little research and found out that those errors are due to an inline event handler. You will need to define script-src-elem in your CSP policy.

You can find more about it from MDN docs

CodePudding user response:

You're seeing this error because of an inline event handler and will need to define script-src-elem in your CSP policy.

  •  Tags:  
  • Related