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 d2edc2c commit 470dcaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const config = {
};


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

Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const SocketHandler = (req, res) => {
path,
//addTrailingSlash: false
cors: {
origin: "*"
origin: true
}
})
res.socket.server.io = io
Expand Down

0 comments on commit 470dcaa

Please sign in to comment.