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'; ...@@ -3,6 +3,12 @@ import { AppModule } from './app.module';
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule);
app.enableCors({
origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
credentials: true,
})
await app.listen(4001); await app.listen(4001);
} }
bootstrap(); bootstrap();
...@@ -13,7 +13,7 @@ export class Result { ...@@ -13,7 +13,7 @@ export class Result {
@Prop() @Prop()
mentions_before: number; mentions_before: number;
@Prop() @Prop()
followed_before: number; followed_before: number;
...@@ -28,7 +28,7 @@ export class Result { ...@@ -28,7 +28,7 @@ export class Result {
@Prop() @Prop()
mentions_before_users: Array<string>; mentions_before_users: Array<string>;
@Prop() @Prop()
followed_before_users: Array<string>; 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