bloom
bloom copied to clipboard
️🛠 - [Task tracker] Improve Content Security Policies
Task description
Fix issue reported here: [Transak] Missing Content Security Policy Directives in Bloom Application
We need to define more strict content security policies for our app to make it more secure, this is the list of policies that we can add/improve:
- [x] #2144
- [x]
default-src - [x]
connect-src - [x]
img-src - [x]
base-uri - [x]
form-action - [x]
frame-src - [ ] ~
frame-ancestors~ Should be in request headers, not in<meta> - [x]
worker-src - [x]
script-src-attr - [x]
style-src-elem - [x]
style-src-attr - [x]
object-src - [x]
media-src - [x]
font-src - [x]
manifest-src - [ ] ~
prefetch-src~ Unrecognized directive - [x]
navigate-to - [ ] ~
report-to~ Needs to add Sentry endpoint - [ ] ~
sandbox~ Should be in request headers, not in<meta> - [x]
upgrade-insecure-requests
Requirements
No response
Transak window loads a remote URL, so CSP for it is not in our control, the issue is related to the HTMLs that we are loading, like index.html, error.html and about.html, I will fix them
Also investigate frame-src inside index.html.