Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
shahriar
instagram-service
Commits
373bbda2
Commit
373bbda2
authored
Jul 27, 2021
by
shahriar
☹
Browse files
Update main.ts
parent
1cbb0837
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.ts
View file @
373bbda2
...
...
@@ -2,7 +2,7 @@ import { NestFactory } from '@nestjs/core';
import
{
AppModule
}
from
'
./app.module
'
;
async
function
bootstrap
()
{
const
app
=
await
NestFactory
.
create
(
AppModule
);
const
app
=
await
NestFactory
.
create
(
AppModule
,{
cors
:
true
}
);
app
.
enableCors
({
origin
:
'
*
'
,
methods
:
'
GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS
'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment