mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
a5637651b5
* Add Content-Security-Policy header * Add nonce attribute to script tags * Use source-map for webpack devtool * Add ng-csp attribute when CSP is enabled * Allow overriding CSP settings with environment variables * Hook into render and allow routes to disable the CSP header GitOrigin-RevId: a873736a3514198165f1b2f1e18d002b65f20d30
4 lines
232 B
Text
4 lines
232 B
Text
if (frontChatWidgetRoomId)
|
|
script(type="text/javascript", nonce=scriptNonce).
|
|
window.FCSP = '#{frontChatWidgetRoomId}';
|
|
script(type="text/javascript", nonce=scriptNonce, src="https://chat-assets.frontapp.com/v1/chat.bundle.js")
|