mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 01:22:26 +00:00
Merge pull request #290 from m0sth8/patch-1
Add support for http based instances in middleware
This commit is contained in:
@@ -23,7 +23,7 @@ export function middleware(request: NextRequest) {
|
||||
// this is a workaround for the next.js server not forwarding the host header
|
||||
requestHeaders.set(
|
||||
"x-zitadel-instance-host",
|
||||
`${INSTANCE}`.replace("https://", ""),
|
||||
`${INSTANCE}`.replace(/^https?:\/\//, ""),
|
||||
);
|
||||
|
||||
const responseHeaders = new Headers();
|
||||
|
||||
Reference in New Issue
Block a user