Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
ESDP_froot.kz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ESDP_froot.kz
ESDP_froot.kz
Commits
4cda52f6
Commit
4cda52f6
authored
May 19, 2021
by
Dmitriy Anisov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#78
починка cors
parent
3582e5b0
Pipeline
#342
passed with stages
in 2 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app.js
api/app.js
+4
-4
No files found.
api/app.js
View file @
4cda52f6
...
@@ -12,10 +12,10 @@ const bigBrother = require('./app/bigBrother')
...
@@ -12,10 +12,10 @@ const bigBrother = require('./app/bigBrother')
const
app
=
express
();
const
app
=
express
();
const
port
=
process
.
env
.
NODE_ENV
!==
'test'
?
8000
:
8010
;
const
port
=
process
.
env
.
NODE_ENV
!==
'test'
?
8000
:
8010
;
const
corsOptions
=
{
//
const corsOptions = {
origin
:
'http://104.248.198.29:3000'
,
//
origin: 'http://104.248.198.29:3000',
optionsSuccessStatus
:
200
//
optionsSuccessStatus: 200
}
//
}
app
.
use
(
cors
());
app
.
use
(
cors
());
app
.
use
(
express
.
json
());
app
.
use
(
express
.
json
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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