Skip to content

Commit a05e581

Browse files
authored
Merge pull request #1051 from agenes01/feat/issue-1004-xss-csp-prevention
feat(#1004): implement XSS prevention with Content Security Policy
2 parents e2bfe94 + 1921e4c commit a05e581

3 files changed

Lines changed: 1178 additions & 1 deletion

File tree

app.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,16 @@
4848
"web": {
4949
"favicon": "./assets/subtrackr-icon.png",
5050
"name": "SubTrackr - Subscription Management with Crypto Payments",
51-
"description": "Manage your subscriptions with Web3 crypto payments"
51+
"description": "Manage your subscriptions with Web3 crypto payments",
52+
"meta": {
53+
"http-equiv": {
54+
"Content-Security-Policy": "default-src 'self'; script-src 'self' 'strict-dynamic'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; connect-src 'self' https://api.subtrackr.app; font-src 'self' https://fonts.gstatic.com; object-src 'none'; media-src 'none'; frame-src 'none'; frame-ancestors 'none'; form-action 'self'; base-uri 'self'; upgrade-insecure-requests",
55+
"X-Content-Type-Options": "nosniff",
56+
"X-Frame-Options": "DENY",
57+
"Referrer-Policy": "strict-origin-when-cross-origin",
58+
"Permissions-Policy": "geolocation=(), microphone=(), camera=()"
59+
}
60+
}
5261
},
5362
"extra": {
5463
"eas": {

0 commit comments

Comments
 (0)