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) => {
|
||||
return {
|
||||
method: req.method,
|
||||
headers: req.headers,
|
||||
mode: "cors", // 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 '*'
|
||||
//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: req.mode, TODO: commented out because mode: navigate is haram in service worker, it seems
|
||||
//credentials: req.credentials, TODO: commented out because credentials: "include" is haram if the Access-Control-Allow-Origin header is '*'
|
||||
cache: req.cache,
|
||||
redirect: req.redirect,
|
||||
referrer: req.referrer,
|
||||
|
|
Ładowanie…
Reference in New Issue