Commit b0d76b3b authored by velayat's avatar velayat
Browse files

add cors middle ware

parent 0e207abf
......@@ -3,6 +3,12 @@ import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors({
origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
credentials: true,
})
await app.listen(4001);
}
bootstrap();
......@@ -13,7 +13,7 @@ export class Result {
@Prop()
mentions_before: number;
@Prop()
followed_before: number;
......@@ -28,7 +28,7 @@ export class Result {
@Prop()
mentions_before_users: Array<string>;
@Prop()
followed_before_users: Array<string>;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment