electrode-io / electrode

Web applications with node.js and React
Other
2.1k stars 300 forks source link

feat: add csp header feature for subapp v1 #1958

Closed arunvishnun closed 1 year ago

arunvishnun commented 1 year ago

Summary

Currently subappv1 apps need to pass nonce value if it needs to set a CSP header. This PR adds changes to handle it at framework level. App can set a boolean so that electrode will add CSP header.

Additional changes/notes