I am interested in getting the core WW2 functionality to work with a Content-Security-Policy which does not use unsafe-inline for script-src.
I'm not sure what is the best approach to replace the script block in templates/layouts/system.html.ep which sets the value of webworkConfig (and the value of webwork_url inside that object).
It seems one option would be to create a .js.ep template file, and have the controller handle requests for that file.
I'm not sure if it feasible to just add the standard value into htdocs/js/System/system.js and then somehow update that value if needed via a value passed in somehow in the HTML code (via a hidden form field?).
At present, I am working around this by using a hash value for the script block generated in the CSP. It could be that might remain the best approach, at least for now.
@drgrice1 Your advice on how to best approach this would be appreciated.