[skip ci] refactor: proxy -> middleware
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ window.fetch = async (...args) => {
|
||||
const [resource, config] = args;
|
||||
if (resource.toString().includes('localhost'))
|
||||
return await originalFetch(resource, config);
|
||||
const _res = await originalFetch('http://localhost:3001/' + resource, {
|
||||
const _res = await originalFetch('http://localhost:3000/' + resource, {
|
||||
...config,
|
||||
credentials: 'include',
|
||||
mode: 'cors',
|
||||
|
||||
Reference in New Issue
Block a user