fix: allow prefix in serve (#1482)

* fix: allow prefix in serve

* chore: redo regex and clean

* chore: fix test

* fix: use correct prefix characters and URLs

* fix: use correct prefix characters and URLs

* chore: remove core

* chore: fix header url
This commit is contained in:
Tobias Åström
2024-02-16 10:07:18 +01:00
committed by GitHub
parent 30ab5c683f
commit 0f74eace4f
6 changed files with 89 additions and 29 deletions

View File

@@ -210,7 +210,7 @@ module.exports = async ({
// but until then, we need to take care of it here!
authInstance.rest.interceptors.request.use((_req) => {
// eslint-disable-next-line no-param-reassign, dot-notation
_req[1]['headers'] = { origin: 'http://localhost:8000' };
_req[1]['headers'] = { origin: url };
return _req;
});
await authInstance.authorize(authLink);