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 2976dcb commit e638f08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export function middleware(request) {
// retrieve the current response
const res = NextResponse.next()

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

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

0 comments on commit e638f08

Please sign in to comment.