Skip to content

Commit

Permalink
Cors whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
p4bl1t0 authored Jan 20, 2022
1 parent 840bae9 commit 6dc76df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ export class RedisIoAdapter extends IoAdapter {
async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule);

const whitelist = ['https://react-socket-io-webrtc-client.herokuapp.com/'];
const whitelist = [
'http://localhost:8080/',
'http://localhost:3000/',
'http://localhost:3001/',
'http://localhost:19006/',
];

const corsOptionsDelegate = function (req, callback) {
let corsOptions;
Expand Down

0 comments on commit 6dc76df

Please sign in to comment.