Skip to content

Commit

Permalink
Позволим браузерам выполнять CORS запросы на бэкенд
Browse files Browse the repository at this point in the history
  • Loading branch information
greenDev7 committed Sep 3, 2022
1 parent 5199b56 commit 5015893
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -4,7 +4,7 @@ import { AppModule } from './app.module';
declare const module: any;

async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create(AppModule, { cors: true });
await app.listen(3000);

if (module.hot) {
Expand Down
Binary file added test_db.sqlite
Binary file not shown.

0 comments on commit 5015893

Please sign in to comment.