mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
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:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user