Skip to content

Commit

Permalink
Fix CORS error (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
loris-catalano authored Nov 15, 2024
1 parent 80fe132 commit a827df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlkube/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ async function main() {

app.use(
'/',
cors<cors.CorsRequest>(),
cors<cors.CorsRequest>({ origin: ['*'] }),
expressMiddleware(server, {
context: async ({ req }) => {
const token = getBearerToken(req.headers);
Expand Down

0 comments on commit a827df9

Please sign in to comment.