kopia lustrzana https://gitlab.com/rysiekpl/libresilient
service-worker: headers, mode, credentials ignored in Request() init for now
rodzic
b57d17719d
commit
646e7240a5
|
@ -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,
|
||||||
|
|
Ładowanie…
Reference in New Issue