Skip to content

Commit

Permalink
Add Content-Security-Policy for all XML relative types
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Jul 30, 2019
1 parent fce9b25 commit 040bbf3
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions lib/basic-file-access.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
{
"target": "test.atom",
"responseHeaders": {
"Cache-Control": "max-age=3600"
"Cache-Control": "max-age=3600",
"Content-Security-Policy": true
}
},
{
Expand Down Expand Up @@ -129,6 +130,7 @@
"target": "test.js",
"responseHeaders": {
"Cache-Control": "max-age=31536000",
"Content-Security-Policy": true,
"Content-Type": "text/javascript; charset=utf-8"
}
},
Expand Down Expand Up @@ -173,6 +175,7 @@
"target": "test.mjs",
"responseHeaders": {
"Cache-Control": "max-age=31536000",
"Content-Security-Policy": true,
"Content-Type": "text/javascript; charset=utf-8"
}
},
Expand Down Expand Up @@ -201,7 +204,12 @@
"Access-Control-Allow-Origin": "*"
}
},
"test.pdf",
{
"target": "test.pdf",
"responseHeaders": {
"Content-Security-Policy": true
}
},
{
"target": "test.png",
"requestHeaders": {
Expand All @@ -214,13 +222,15 @@
{
"target": "test.rdf",
"responseHeaders": {
"Cache-Control": "max-age=3600"
"Cache-Control": "max-age=3600",
"Content-Security-Policy": true
}
},
{
"target": "test.rss",
"responseHeaders": {
"Cache-Control": "max-age=3600"
"Cache-Control": "max-age=3600",
"Content-Security-Policy": true
}
},
{
Expand All @@ -235,7 +245,8 @@
"Origin": "http://"
},
"responseHeaders": {
"Access-Control-Allow-Origin": "*"
"Access-Control-Allow-Origin": "*",
"Content-Security-Policy": true
}
},
{
Expand All @@ -244,7 +255,8 @@
"Origin": "http://"
},
"responseHeaders": {
"Access-Control-Allow-Origin": "*"
"Access-Control-Allow-Origin": "*",
"Content-Security-Policy": true
}
},
"test.swf",
Expand Down Expand Up @@ -325,7 +337,8 @@
{
"target": "test.xml",
"responseHeaders": {
"Cache-Control": "max-age=0"
"Cache-Control": "max-age=0",
"Content-Security-Policy": true
}
},
"test.xpi"
Expand Down

0 comments on commit 040bbf3

Please sign in to comment.