Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ var token = ea.generateURLToken("/akamai/edgeauth")
var options = {
hostname: EA_HOSTNAME,
path: '/akamai/edgeauth',
'Cookie': `${ea.options.tokenName}=${token}`
headers: {
Cookie: `${ea.options.tokenName}=${token}`
}
}
makeRequest(options, function(res) {
console.log(res.statusCode) // If pass, it won't response 403 code.
Expand Down Expand Up @@ -119,7 +121,9 @@ var token = ea.generateURLToken(acl)
var options = {
hostname: EA_HOSTNAME,
path: "/akamai/edgeauth/22",
Cookie: `${ea.options.tokenName}: ${token}`
headers: {
Cookie: `${ea.options.tokenName}=${token}`
}
}
makeRequest(options, function(res) {
console.log(res.statusCode)
Expand Down Expand Up @@ -188,4 +192,4 @@ $ npm install commander --save
$ node cms-edgeauth.js --key YourEncryptionKey --window 5000 --url /hello/world --escape_early
```

Use -h or --help option for the detail.
Use -h or --help option for the detail.