|
25 | 25 | const _ = require('underscore');
|
26 | 26 |
|
27 | 27 | const data = {
|
28 |
| - 'default-src': ["'self'", 'https://*.godbolt.org', 'localhost:*'], |
29 |
| - 'style-src': ["'self'", "'unsafe-inline'", 'https://*.godbolt.org', 'localhost:*'], |
30 |
| - 'script-src': ["'self'", "'unsafe-inline'", 'data:', 'https://*.godbolt.org', 'localhost:*', |
| 28 | + 'default-src': ["'self'", 'https://*.godbolt.org', 'localhost:*', 'https://*.compiler-explorer.com'], |
| 29 | + 'style-src': ["'self'", "'unsafe-inline'", 'https://*.godbolt.org', 'localhost:*', 'https://*.compiler-explorer.com'], |
| 30 | + 'script-src': ["'self'", "'unsafe-inline'", 'data:', 'https://*.godbolt.org', 'localhost:*', 'https://*.compiler-explorer.com', |
31 | 31 | 'https://*.twitter.com', 'https://www.google-analytics.com',
|
32 | 32 | 'https://apis.google.com', 'https://ssl.google-analytics.com', 'https://sentry.io/'],
|
33 |
| - 'img-src': ["'self'", 'https://*.godbolt.org', 'localhost:*', 'data:', 'https://www.google-analytics.com/', |
| 33 | + 'img-src': ["'self'", 'https://*.godbolt.org', 'localhost:*', 'https://*.compiler-explorer.com', 'data:', 'https://www.google-analytics.com/', |
34 | 34 | 'https://syndication.twitter.com', 'https://ssl.google-analytics.com', 'https://csi.gstatic.com'],
|
35 |
| - 'font-src': ["'self'", 'data:', 'https://*.godbolt.org', 'localhost:*', 'https://fonts.gstatic.com', |
| 35 | + 'font-src': ["'self'", 'data:', 'https://*.godbolt.org', 'localhost:*', 'https://*.compiler-explorer.com', 'https://fonts.gstatic.com', |
36 | 36 | 'https://themes.googleusercontent.com'],
|
37 |
| - 'frame-src': ["'self'", 'https://*.godbolt.org', 'localhost:*', 'https://www.google-analytics.com', |
| 37 | + 'frame-src': ["'self'", 'https://*.godbolt.org', 'localhost:*', 'https://*.compiler-explorer.com', 'https://www.google-analytics.com', |
38 | 38 | 'https://accounts.google.com/', 'https://content.googleapis.com/',
|
39 | 39 | 'https://sentry.io', 'https://platform.twitter.com/', 'https://syndication.twitter.com/'],
|
40 |
| - 'connect-src': ["'self'", '*', 'https://*.godbolt.org', 'localhost:*', 'https://api.github.com'], |
41 |
| - 'media-src': ["'self'", 'https://ssl.gstatic.com', 'https://*.godbolt.org', 'localhost:*'] |
| 40 | + 'connect-src': ["'self'", '*', 'https://*.godbolt.org', 'localhost:*', 'https://*.compiler-explorer.com', 'https://api.github.com'], |
| 41 | + 'media-src': ["'self'", 'https://ssl.gstatic.com', 'https://*.godbolt.org', 'localhost:*', 'https://*.compiler-explorer.com'] |
42 | 42 | };
|
43 | 43 |
|
44 | 44 | module.exports = {
|
|
0 commit comments