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:
David Taylor 2021-12-02 15:03:45 +00:00 committed by GitHub
parent 732678f642
commit 55cbc70f3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ async function handleRequest(proxy, baseURL, req, res) {
method: req.method,
body: /GET|HEAD/.test(req.method) ? null : req.body,
headers: req.headers,
redirect: "manual",
});
response.headers.forEach((value, header) => {