Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-029
2023-029
Commits
20611974
Commit
20611974
authored
Sep 06, 2023
by
janithgamage1.ed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update
parent
c4cd4f07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2866 deletions
+7
-2866
Project/Backend/Server_Node/package-lock.json
Project/Backend/Server_Node/package-lock.json
+0
-2860
Project/Backend/Server_Node/server.js
Project/Backend/Server_Node/server.js
+7
-6
No files found.
Project/Backend/Server_Node/package-lock.json
deleted
100644 → 0
View file @
c4cd4f07
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Project/Backend/Server_Node/server.js
View file @
20611974
...
@@ -23,15 +23,16 @@ import userProgressRoutes from "./routes/userProgress.routes.js";
...
@@ -23,15 +23,16 @@ import userProgressRoutes from "./routes/userProgress.routes.js";
dotenv
.
config
();
dotenv
.
config
();
const
app
=
express
();
const
app
=
express
();
// const corsOptions = {
const
corsOptions
=
{
// origin: 'http://localhost:3000',
origin
:
'
http://localhost:3000
'
,
// origin: 'http://localhost:3001',
origin
:
'
http://localhost:3001
'
,
// };
origin
:
'
https://sign-connect-plus.netlify.app
'
};
app
.
use
(
bodyParser
.
json
({
limit
:
"
30mb
"
,
extended
:
true
}));
app
.
use
(
bodyParser
.
json
({
limit
:
"
30mb
"
,
extended
:
true
}));
app
.
use
(
bodyParser
.
urlencoded
({
limit
:
"
30mb
"
,
extended
:
true
}));
app
.
use
(
bodyParser
.
urlencoded
({
limit
:
"
30mb
"
,
extended
:
true
}));
//
app.use(cors(corsOptions));
app
.
use
(
cors
(
corsOptions
));
app
.
use
(
cors
());
//
app.use(cors());
//end
//end
app
.
get
(
"
/
"
,
(
req
,
res
)
=>
{
app
.
get
(
"
/
"
,
(
req
,
res
)
=>
{
...
...
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