Loader#headers

headers : Object

Used to map the application mime-types to to the Accept header in XHR requests.
If you don't require these mappings, or they cause problems on your server, then
remove them from the headers object and the XHR request will not try to use them.

This object can also be used to set the X-Requested-With header to
XMLHttpRequest (or any other value you need). To enable this do:

this.load.headers.requestedWith = 'XMLHttpRequest'

before adding anything to the Loader. The XHR loader will then call:

setRequestHeader('X-Requested-With', this.headers['requestedWith'])

Default Value
  • {"undefined":"application/xml"}
Source code: loader/Loader.js (Line 122)
doc_phaser
2017-02-14 10:54:23
Comments
Leave a Comment

Please login to continue.