Forum Moderators: open
JSON:
"headers": {
"sec-ch-ua-mobile": "?0",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
"Accept-Language": "en-US,en;q=0.5",
"sec-ch-ua": "\".Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"103\", \"Chromium\";v=\"103\"",
"host": "www.example.com",
"X-REWRITE-URL": "/",
"DNT": "1",
"connection": "keep-alive",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Origin": "https://www.example.com",
"Accept-Encoding": "gzip, deflate;q=1.0, *;q=0.5",
"referer": "https://www.example.com",
"cookie": "valid_cookie_value",
"sec-gpc": "1",
"sec-ch-ua-platform": "\"Linux\"",
"content-length": "0"
}
https://chromestatus.com/feature/5155867204780032
https://web.dev/fetch-metadata/
Browser compatibility #
Fetch Metadata request headers are supported as of Firefox 90 and as of Chrome 76 in all Chromium-based browsers.
https://wicg.github.io/ua-client-hints/#spam-filtering-bots-use-case
https://www.w3.org/TR/fetch-metadata/
$.ajaxSetup({
headers: { 'ajax-x-from': 'UUID-Assigned-To-Session' }
});
$.post( endPointURI,..................