|
Lines 34-45
LayoutTests/http/tests/xmlhttprequest/cors-non-standard-safelisted-headers-should-trigger-preflight.html_sec1
|
| 34 |
} |
34 |
} |
| 35 |
|
35 |
|
| 36 |
var abnormalSimpleCorsHeaderValue = "() { :;};" |
36 |
var abnormalSimpleCorsHeaderValue = "() { :;};" |
| 37 |
var allAllowedNonAlphanumericCharactersForAcceptHeader = " *./;=" |
37 |
var allAllowedNonAlphanumericCharactersForAcceptHeader = " *,./;=" |
| 38 |
var allAllowedNonAlphanumericCharactersForAcceptAndContentLanguageHeader = " *-.;=" |
38 |
var allAllowedNonAlphanumericCharactersForAcceptAndContentLanguageHeader = " *,-.;=" |
| 39 |
var testCases = [ |
39 |
var testCases = [ |
| 40 |
// Positive test cases with normal headers |
40 |
// Positive test cases with normal headers |
| 41 |
{ |
41 |
{ |
| 42 |
headersToAdd: [{ name : "Accept", value: "text/*" }], |
42 |
headersToAdd: [{ name : "Accept", value: "application/json,text/*,*/*" }], |
| 43 |
explicitlyAllowHeaders: false, |
43 |
explicitlyAllowHeaders: false, |
| 44 |
shouldCausePreflight: false, |
44 |
shouldCausePreflight: false, |
| 45 |
description: "Accept header with normal value SHOULD NOT cause a preflight" |
45 |
description: "Accept header with normal value SHOULD NOT cause a preflight" |
|
Lines 51-57
LayoutTests/http/tests/xmlhttprequest/cors-non-standard-safelisted-headers-should-trigger-preflight.html_sec2
|
| 51 |
description: "Accept header value with all allowed non-alphanumeric characters SHOULD NOT cause a preflight" |
51 |
description: "Accept header value with all allowed non-alphanumeric characters SHOULD NOT cause a preflight" |
| 52 |
} |
52 |
} |
| 53 |
,{ |
53 |
,{ |
| 54 |
headersToAdd: [{ name : "Accept-Language", value: "en" }], |
54 |
headersToAdd: [{ name : "Accept-Language", value: "en-US,en;q=0.8" }], |
| 55 |
explicitlyAllowHeaders: false, |
55 |
explicitlyAllowHeaders: false, |
| 56 |
shouldCausePreflight: false, |
56 |
shouldCausePreflight: false, |
| 57 |
description: "Accept-Language header with normal value SHOULD NOT cause a preflight" |
57 |
description: "Accept-Language header with normal value SHOULD NOT cause a preflight" |