DEV: Ensure redirects are passed through to the client by ember-cli (#15170)
By default, `fetch` will transparently follow redirects, even across domain boundaries
This commit is contained in:
parent
732678f642
commit
55cbc70f3f
|
@ -240,6 +240,7 @@ async function handleRequest(proxy, baseURL, req, res) {
|
||||||
method: req.method,
|
method: req.method,
|
||||||
body: /GET|HEAD/.test(req.method) ? null : req.body,
|
body: /GET|HEAD/.test(req.method) ? null : req.body,
|
||||||
headers: req.headers,
|
headers: req.headers,
|
||||||
|
redirect: "manual",
|
||||||
});
|
});
|
||||||
|
|
||||||
response.headers.forEach((value, header) => {
|
response.headers.forEach((value, header) => {
|
||||||
|
|
Loading…
Reference in New Issue