A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/xhr/XMLHttpRequest/withCredentials below:

withCredentials · WebPlatform Docs

withCredentials Summary

Returns or sets whether cross-site Access-Control requests should be made using credentials such as cookies or authorization headers.

Property of apis/xhr/XMLHttpRequestapis/xhr/XMLHttpRequest

Syntax
var result = element.withCredentials;
element.withCredentials = value;
Return Value

Returns an object of type BooleanBoolean

Default is false.

Examples
var xhr = new XMLHttpRequest();
xhr.open("GET", "http://updates.html5rocks.com", true);
xhr.withCredentials = true;
xhr.send();
Notes

withCredentials cannot be set after the XMLHttpRequest’s send() method is called.

Related specifications
W3C XMLHttpRequest Specification
W3C Working Draft
Cross-Origin Resource Sharing
W3C Candidate Recommendation 29 January 2013
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4