Skip to content

Commit

Permalink
cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Szabolcs Szabolcsi-Toth committed Jun 9, 2024
1 parent da2f404 commit 2976dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function middleware(request) {
// retrieve the current response
const res = NextResponse.next()

console.log('middleware cors', request.headers.origin)
console.log('middleware cors', request.headers.get('origin'))

// add the CORS headers to the response
res.headers.append('Access-Control-Allow-Credentials', "true")
Expand Down

0 comments on commit 2976dcb

Please sign in to comment.