Skip to content

Commit

Permalink
fix: set header rewrites (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Sep 8, 2022
1 parent bc05bcf commit 67937c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/next-edge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ export function createApiHandler(options: CreateApiHandlerOptions) {
options.forwardAdditionalHeaders,
)

req.headers["X-Ory-Base-URL-Rewrite"] = "false"
req.headers["Ory-Base-URL-Rewrite"] = "false"
req.headers["Ory-No-Custom-Domain-Redirect"] = "true"

let buf = Buffer.alloc(0)
let code = 0
let headers: IncomingHttpHeaders
Expand Down

0 comments on commit 67937c7

Please sign in to comment.