Can be modified via the transformRequest function, eg on this link
Goal is to remove the need for an Allow-CORS plugin.
Code-sample from the doc:
// Use `transformRequest` to modify requests that begin with `http://myHost`.
transformRequest: (url, resourceType) => {
if (resourceType === 'Source' && url.startsWith('http://myHost')) {
return {
url: url.replace('http', 'https'),
headers: {'my-custom-header': true},
credentials: 'include' // Include cookies for cross-origin requests
};
}
}
Can be modified via the
transformRequest
function, eg on this linkGoal is to remove the need for an Allow-CORS plugin.
Code-sample from the doc: