#91283Integrate HTTP Sec-Fetch header policy
Description
Example headers:
- HTTP fetch
- HTTP_SEC_FETCH_DEST: “empty”
- HTTP_SEC_FETCH_MODE: “cors”
- HTTP_SEC_FETCH_SITE: “same-origin”
- IFRAME fetch
- HTTP_SEC_FETCH_DEST: “iframe”
- HTTP_SEC_FETCH_MODE: “navigate”
- HTTP_SEC_FETCH_SITE: “cross-site”
Resources:
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode
——-
Integrate RequestPolicy and FetchPolicy
$requestPolicy = (new RequestPolicy())
->withFetchPolicy((new FetchPolicy())
->withAllowedAbsence(bool)
->withFetchDest(string[])
->withFetchSite(string[])
->withFetchUser(string[])
->withFetchMode(string[])
);Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[TASK] Integrate HTTP Sec-Fetch header policy Resolves: #91283 Releases: main