servo/tests/wpt/web-platform-tests/origin-policy/policies
2020-04-08 10:50:40 +00:00
..
op1 cspfp-comma-in-policy.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op2 cspfp-double-top-level.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op3 cspfp-double-second-level.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op4 csp-non-array.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op5 cspfp-non-object.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op6 cspfp-non-string.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op7 csp-noimg-report-only.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op8 csp-noimg.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op9 csp-valid-with-multi-item-array.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op10 cspfp-valid.json Update web-platform-tests to revision 06fef020fd350a4091c8a19dc83e50d8456f3dc1 2020-02-28 13:58:13 +00:00
op11 no-ids.json Update web-platform-tests to revision 4cec5596c806088cd8f1781bdaab1d10abb72394 2020-03-11 13:28:16 +00:00
op12 empty-ids.json Update web-platform-tests to revision 4cec5596c806088cd8f1781bdaab1d10abb72394 2020-03-11 13:28:16 +00:00
op13 empty-ids-after-nonempty.json Update web-platform-tests to revision 4cec5596c806088cd8f1781bdaab1d10abb72394 2020-03-11 13:28:16 +00:00
op14 non-array-id.json Update web-platform-tests to revision 4cec5596c806088cd8f1781bdaab1d10abb72394 2020-03-11 13:28:16 +00:00
op15 mix-of-ids.json Update web-platform-tests to revision 4cec5596c806088cd8f1781bdaab1d10abb72394 2020-03-11 13:28:16 +00:00
op16 two-ids.json Update web-platform-tests to revision 4cec5596c806088cd8f1781bdaab1d10abb72394 2020-03-11 13:28:16 +00:00
op97 utf-8-with-bom.json Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
op98 utf-16le.json Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00
op99 csp-valid-manifest-with-404.json Update web-platform-tests to revision 5d33b4da92080b7658168bdb0fbdc3531bda1ddf 2020-03-10 13:32:16 +00:00
op100 manifest-mimetype.json Update web-platform-tests to revision 5d33b4da92080b7658168bdb0fbdc3531bda1ddf 2020-03-10 13:32:16 +00:00
README.md Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f 2020-04-08 10:50:40 +00:00

These policies are served via the Python script at /.well-known/origin-policy. Their filenames must be in the form subdomain human-facing-string-with-no-spaces.json. They will be served in response to requests to that subdomain.

The human-facing string has no impact on the tests, and just makes it easier to scroll through the list.

The list of potential hostnames is created by tools/serve/serve.py's _make_origin_policy_subdomains function, and can be expanded as necessary.

At the moment, the origin policies starting at 100 downward have special handling in the /.well-known/origin-policy handler, and might require consulting that file to get the full context. The ones starting at 1 upward are handled generically. If they ever start meeting in the middle we can reevaluate this scheme.