|
23 | 23 |
|
24 | 24 |
|
25 | 25 | <!-- |
26 | | - The meta tag with "Content-Security-Policy" below is the Content Security Policy, by having default-src as self all CSP rules that are unspecified will only |
27 | | - allow the OED site and resources to be used/displayed. Tags like img-src, media-src, and script-src are also set to self to ensure that only |
28 | | - resources like images, audio/videos, and scripts like JavaScript and TypeScript can only be from OED and will block any types of injections. |
29 | | - The tag font-src is the exception to this as OED also uses a font from a bootstrapcdn.com sub-domain and has this site listed next to 'self'. |
30 | | - To test CSP rules change http-equiv=”Content-Security-Policy” to http-equiv=”Content-Security-Policy-Report-Only” this allows us to send reports of |
31 | | - what would have been blocked without actually blocking it. |
| 26 | + The meta tag with "Content-Security-Policy" below is the Content Security Policy, by having default-src as self all CSP rules that are |
| 27 | + unspecified will only allow the OED site and resources to be used/displayed. Tags like img-src, media-src, and script-src are also set to self |
| 28 | + to ensure that only resources like images, audio/videos, and scripts like JavaScript and TypeScript can only be from OED and will block any |
| 29 | + types of injections. The tag font-src is the exception to this as OED also uses a font from a bootstrapcdn.com sub-domain and has this site |
| 30 | + listed next to 'self'. To test CSP rules change http-equiv=”Content-Security-Policy” to http-equiv=”Content-Security-Policy-Report-Only” this |
| 31 | + allows us to send reports of what would have been blocked without actually blocking it. |
32 | 32 | |
33 | | - For sites using OED and are blocked by these CSP rules may add their site to the exception they may list their website link next to the tag that is blocking |
34 | | - the user site. The site link must be added after 'self' but before the semi colon marking the end of that tag. The font-src tag is a great example on how to implement |
35 | | - a site to the exception list. Another example for adding a site (https://newException.com) to a tag with multiple sites as an exceptions would be : |
36 | | - img-src 'self' http://example.com https://site_example.net; becomes img-src 'self' http://example.com https://site_example.net https://newException.com; |
37 | | - --> |
38 | | - <!-- <meta http-equiv="Content-Security-Policy" content=" |
39 | | - default-src 'self'; |
40 | | - img-src 'self'; |
41 | | - font-src 'self' https://maxcdn.bootstrapcdn.com; |
42 | | - media-src 'self'; |
43 | | - script-src 'self' 'nonce-__NONCE__'; |
44 | | - style-src 'self' 'nonce-__NONCE__'; "> --> |
45 | | - |
46 | | - |
47 | | - <!-- <link rel="stylesheet" href="styles/card-page.css" nonce="__NONCE__"> |
48 | | - <link rel="stylesheet" href="styles/DateRangeCustom.css" nonce="__NONCE__"> |
49 | | - <link rel="stylesheet" href="styles/index.css" nonce="__NONCE__"> |
50 | | - <link rel="stylesheet" href="styles/modal.css" nonce="__NONCE__"> |
51 | | - <link rel="stylesheet" href="styles/react-select-css.css" nonce="__NONCE__"> |
52 | | - <link rel="stylesheet" href="styles/spinner.css" nonce="__NONCE__"> |
53 | | - <link rel="stylesheet" href="styles/tooltip.css" nonce="__NONCE__"> |
| 33 | + For sites using OED and are blocked by these CSP rules may add their site to the exception they may list their website link next to the tag that |
| 34 | + is blocking the user site. The site link must be added after 'self' but before the semi colon marking the end of that tag. The font-src tag is a |
| 35 | + great example on how to implement a site to the exception list. Another example for adding a site (https://newException.com) to a tag with |
| 36 | + multiple sites as an exceptions would be : img-src 'self' http://example.com https://site_example.net; becomes img-src 'self' |
| 37 | + http://example.com https://site_example.net https://newException.com; |
54 | 38 | --> |
| 39 | + |
55 | 40 | </head> |
56 | 41 |
|
57 | 42 | <body> |
|
0 commit comments