Skip to content

Commit

Permalink
fix: allow credentials on cors requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonadams committed Aug 21, 2020
1 parent 83d2776 commit 415015a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/server/middleware/src/lib/global.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export function setupGlobalMiddleware(app: Koa) {
app.use(helmet());
app.use(compress());
app.use(bodyParser());
app.use(cors());
app.use(
cors({
credentials: true,
})
);
app.use(bearerToken());

// Custom error handling
Expand Down

0 comments on commit 415015a

Please sign in to comment.