Skip to content

Commit

Permalink
Merge pull request #375 from badgerwithagun/master
Browse files Browse the repository at this point in the history
Permit Github API in CSP
  • Loading branch information
badgerwithagun authored May 27, 2019
2 parents 733d02e + a77ce34 commit d4e726f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ClientSecurityHeadersFilter extends AbstractHttpServletFilter {
+ "script-src 'self' https://*.tradingview.com; "
+ "img-src 'self' data:; "
+ "frame-src 'self' https://*.tradingview.com; "
+ "connect-src 'self' " + wssUri.toString() + "; "
+ "connect-src 'self' https://api.github.com " + wssUri.toString() + "; "
+ "manifest-src 'self'; "
+ "frame-ancestors 'self';";
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void testClientSecurityHeadersFilter() throws IOException, ServletExcepti
+ "script-src 'self' https://*.tradingview.com; "
+ "img-src 'self' data:; "
+ "frame-src 'self' https://*.tradingview.com; "
+ "connect-src 'self' ws://gruelbox.com; "
+ "connect-src 'self' https://api.github.com ws://gruelbox.com; "
+ "manifest-src 'self'; "
+ "frame-ancestors 'self';");
}
Expand All @@ -90,7 +90,7 @@ public void testWss() throws IOException, ServletException {
+ "script-src 'self' https://*.tradingview.com; "
+ "img-src 'self' data:; "
+ "frame-src 'self' https://*.tradingview.com; "
+ "connect-src 'self' wss://gruelbox.com; "
+ "connect-src 'self' https://api.github.com wss://gruelbox.com; "
+ "manifest-src 'self'; "
+ "frame-ancestors 'self';");
}
Expand All @@ -109,7 +109,7 @@ public void testIe10Ws() throws IOException, ServletException {
+ "script-src 'self' https://*.tradingview.com; "
+ "img-src 'self' data:; "
+ "frame-src 'self' https://*.tradingview.com; "
+ "connect-src 'self' ws://github.com; "
+ "connect-src 'self' https://api.github.com ws://github.com; "
+ "manifest-src 'self'; "
+ "frame-ancestors 'self';");
}
Expand All @@ -129,7 +129,7 @@ public void testIe10Wss() throws IOException, ServletException {
+ "script-src 'self' https://*.tradingview.com; "
+ "img-src 'self' data:; "
+ "frame-src 'self' https://*.tradingview.com; "
+ "connect-src 'self' wss://github.com; "
+ "connect-src 'self' https://api.github.com wss://github.com; "
+ "manifest-src 'self'; "
+ "frame-ancestors 'self';");
}
Expand All @@ -148,7 +148,7 @@ public void testIe11Ws() throws IOException, ServletException {
+ "script-src 'self' https://*.tradingview.com; "
+ "img-src 'self' data:; "
+ "frame-src 'self' https://*.tradingview.com; "
+ "connect-src 'self' ws://github.com; "
+ "connect-src 'self' https://api.github.com ws://github.com; "
+ "manifest-src 'self'; "
+ "frame-ancestors 'self';");
}
Expand All @@ -168,7 +168,7 @@ public void testIe11Wss() throws IOException, ServletException {
+ "script-src 'self' https://*.tradingview.com; "
+ "img-src 'self' data:; "
+ "frame-src 'self' https://*.tradingview.com; "
+ "connect-src 'self' wss://github.com; "
+ "connect-src 'self' https://api.github.com wss://github.com; "
+ "manifest-src 'self'; "
+ "frame-ancestors 'self';");
}
Expand Down

0 comments on commit d4e726f

Please sign in to comment.