Skip to content

Commit

Permalink
fix: add headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Keemluvr committed Jun 17, 2024
1 parent 8e1211a commit 022bf51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/middleware/cors.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class CorsMiddleware implements NestMiddleware {
const origin = req.headers.origin || req.headers.host;
const { allowOrigins, siteName, id } = this.configService.server;
console.log('allowedOrigins', allowOrigins);
console.log('>', origin);
console.log('>', origin, req.headers);

const isAllowedOrigin = allowOrigins.includes(origin);
console.log(isAllowedOrigin);
Expand Down

0 comments on commit 022bf51

Please sign in to comment.