You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using CSP (like NelmioSecurityBundle) with Asset-Mapper, there's lot of blockage. Like need to open remote sites for scripts (when using the shim, and because the downloaded shim does't work), need to add unsafe-inline as it write JS in the html. By using 'unsafe-inline' or 'unsafe-eval' you're effectively disabling the XSS protection mechanism of CSP.
How to reproduce
Install NelmioSecurityBundle and start the CSP
Possible Solution
1- Have the same version of the shim downloaded.
2- We need to add nonce, to the script. Nonce that might need to be sync between Bundle.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected
6.4.0-RC1
Description
When using CSP (like NelmioSecurityBundle) with Asset-Mapper, there's lot of blockage. Like need to open remote sites for scripts (when using the shim, and because the downloaded shim does't work), need to add unsafe-inline as it write JS in the html. By using 'unsafe-inline' or 'unsafe-eval' you're effectively disabling the XSS protection mechanism of CSP.
How to reproduce
Install NelmioSecurityBundle and start the CSP
Possible Solution
1- Have the same version of the shim downloaded.
2- We need to add nonce, to the script. Nonce that might need to be sync between Bundle.
Additional Context
No response
The text was updated successfully, but these errors were encountered: