jquery / jquery

jQuery JavaScript Library
https://jquery.com
MIT License
58.93k stars 20.62k forks source link

Issue using JQuery 3.7.1 and CSP #5476

Closed nalumachurakesh closed 1 month ago

nalumachurakesh commented 1 month ago

Hi

I'm using jquery 3.7.1 and implementing CSP. Earlier I used "unsafe-inline" and "style-src" but when I removed it I'm getting CSP related errors in the jquery file. Below are the attached screenshots.

image

image

image

image

I don't want to use "unsafe-inline" in "style-src". Is there a way to resolve this error without "unsafe-inline"?

Thank you.