service-worker: headers, mode, credentials ignored in Request() init for now

merge-requests/9/merge
Michał 'rysiek' Woźniak 2021-11-16 23:46:13 +00:00
rodzic b57d17719d
commit 646e7240a5
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -418,9 +418,9 @@ let LibResilientResourceInfo = class {
let initFromRequest = (req) => { let initFromRequest = (req) => {
return { return {
method: req.method, method: req.method,
headers: req.headers, //headers: req.headers, TODO: commented out: https://stackoverflow.com/questions/32500073/request-header-field-access-control-allow-headers-is-not-allowed-by-itself-in-pr
mode: "cors", // req.mode, TODO: commented out because mode: navigate is haram in service worker, it seems //mode: req.mode, TODO: commented out because mode: navigate is haram in service worker, it seems
credentials: "same-origin", // req.credentials, TODO: commented out because credentials: "include" is haram if the Access-Control-Allow-Origin header is '*' //credentials: req.credentials, TODO: commented out because credentials: "include" is haram if the Access-Control-Allow-Origin header is '*'
cache: req.cache, cache: req.cache,
redirect: req.redirect, redirect: req.redirect,
referrer: req.referrer, referrer: req.referrer,