OptionalcredentialsDetermines whether the browser sends credentials with the request
Can be either a boolean or a RequestCredentials value:
true: maps to "include" - credentials are included in both same-origin and cross-origin requestsfalse: maps to "same-origin" - credentials are only included in same-origin requests"include": credentials are included in both same-origin and cross-origin requests"same-origin": credentials are only included in same-origin requests"omit": credentials are never included in requestsOptionalrequestAn object literal that represents headers (as a key-value map) to send with each HTTP request. If set (and not empty), an XHR with the specified headers will be performed instead of creating an Image.
OptionalrequestAn object literal that represents URL parameters (as a key-value map) to send with each HTTP request. If set (and not empty), an XHR with the specified query parameters will be performed instead of creating an Image.
Interface to provide HTTP request options.