Closed reckart closed 8 months ago
I do not have a current test environment to test this use case. Could you please share the lines from the plugin code in which the CSP policy error is showing up?
Updated with a fix to address most issues (kindly recheck and let know). You may need to also reconfigure your CSP policy to allow scripts from libraries like JQUERY (using a nonce for example) - so that jquery internal functions like parseHTML
do not cause a CSP error.
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
unsafe-inline
Expected behavior and actual behavior
Errors in the JavaScript console related to using inline styles. They are triggered by calls to JQuery's
parseHTML
andinnerHTML
functions from withinfileinput.js
.I was expecting that
fileinput.js
should work withoutunsafe-inline
, in particular since https://github.com/kartik-v/bootstrap-fileinput/issues/1565 has been closed.Environment
Browsers
Operating System
Libraries
Isolating the problem