Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
Today KU
Commits
434a9ff3
Commit
434a9ff3
authored
Oct 01, 2021
by
Kim, Subin
Browse files
cookieParser 설치 및 적용
parent
5b2ac65a
Changes
3
Hide whitespace changes
Inline
Side-by-side
package-lock.json
View file @
434a9ff3
...
...
@@ -10,6 +10,7 @@
"license"
:
"ISC"
,
"dependencies"
:
{
"bcryptjs"
:
"^2.4.3"
,
"cookie-parser"
:
"^1.4.5"
,
"dotenv"
:
"^10.0.0"
,
"express"
:
"^4.17.1"
,
"jsonwebtoken"
:
"^8.5.1"
,
...
...
@@ -433,6 +434,18 @@
"node"
:
">= 0.6"
}
},
"node_modules/cookie-parser"
:
{
"version"
:
"1.4.5"
,
"resolved"
:
"https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.5.tgz"
,
"integrity"
:
"sha512-f13bPUj/gG/5mDr+xLmSxxDsB9DQiTIfhJS/sqjrmfAWiAN+x2O4i/XguTL9yDZ+/IFDanJ+5x7hC4CXT9Tdzw=="
,
"dependencies"
:
{
"cookie"
:
"0.4.0"
,
"cookie-signature"
:
"1.0.6"
},
"engines"
:
{
"node"
:
">= 0.8.0"
}
},
"node_modules/cookie-signature"
:
{
"version"
:
"1.0.6"
,
"resolved"
:
"https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz"
,
...
...
@@ -2557,6 +2570,15 @@
"resolved"
:
"https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz"
,
"integrity"
:
"sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg=="
},
"cookie-parser"
:
{
"version"
:
"1.4.5"
,
"resolved"
:
"https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.5.tgz"
,
"integrity"
:
"sha512-f13bPUj/gG/5mDr+xLmSxxDsB9DQiTIfhJS/sqjrmfAWiAN+x2O4i/XguTL9yDZ+/IFDanJ+5x7hC4CXT9Tdzw=="
,
"requires"
:
{
"cookie"
:
"0.4.0"
,
"cookie-signature"
:
"1.0.6"
}
},
"cookie-signature"
:
{
"version"
:
"1.0.6"
,
"resolved"
:
"https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz"
,
...
...
package.json
View file @
434a9ff3
...
...
@@ -21,6 +21,7 @@
"license"
:
"
ISC
"
,
"dependencies"
:
{
"
bcryptjs
"
:
"
^2.4.3
"
,
"
cookie-parser
"
:
"
^1.4.5
"
,
"
dotenv
"
:
"
^10.0.0
"
,
"
express
"
:
"
^4.17.1
"
,
"
jsonwebtoken
"
:
"
^8.5.1
"
,
...
...
server/app.js
View file @
434a9ff3
import
express
from
'
express
'
import
cookieParser
from
'
cookie-parser
'
const
app
=
express
()
app
.
use
(
express
.
json
())
app
.
use
(
express
.
urlencoded
({
extended
:
true
}))
app
.
use
(
cookieParser
())
export
default
app
\ No newline at end of file
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