зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1424076 - P2 adjust Origin header comparison for POST request r=Honza
We'd like to enable the Origin header for all eligible reqeusts, which include POST. The test should be adjusted. Differential Revision: https://phabricator.services.mozilla.com/D33382 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
56de7ee333
Коммит
6aa8489ec9
|
@ -48,6 +48,9 @@ add_task(async function() {
|
|||
"--data " + quote(POST_PAYLOAD),
|
||||
header("Content-Type: text/plain;charset=UTF-8"),
|
||||
];
|
||||
const ORIGIN_RESULT = [
|
||||
header("Origin: http://example.com"),
|
||||
];
|
||||
|
||||
const HEAD_PARTIAL_RESULT = ["-I"];
|
||||
|
||||
|
@ -85,6 +88,7 @@ add_task(async function() {
|
|||
...BASE_RESULT,
|
||||
...COOKIE_PARTIAL_RESULT,
|
||||
...POST_PARTIAL_RESULT,
|
||||
...ORIGIN_RESULT,
|
||||
]);
|
||||
|
||||
// HEAD request
|
||||
|
|
Загрузка…
Ссылка в новой задаче