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 6be0e87 commit b1fd491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export const config = {
};


export function middleware() {
export function middleware(request) {
// retrieve the current response
const res = NextResponse.next()

console.log('middleware cors')
console.log('middleware cors', request)

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

0 comments on commit b1fd491

Please sign in to comment.