diff --git a/README.md b/README.md index d77e373..be17fc2 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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) @@ -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. \ No newline at end of file +Use -h or --help option for the detail.