Skip to content

Commit f19f2b8

Browse files
Merge pull request #13 from Crowdhandler/maintenance/soften-cookie-flags-to-enable-backup-cookie-via-js
HttpOnly flag removed from cookie set. We are doing this as a risk vs…
2 parents 7642bf7 + e0b503c commit f19f2b8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ async function handleRequest(event) {
351351
//If this is a freshly promoted session, strip the special CrowdHandler parameters by issuing a redirect.
352352
if (freshlyPromoted) {
353353
let setCookie = {
354-
'Set-Cookie': `crowdhandler=${token}; path=/; Secure; HttpOnly`,
354+
'Set-Cookie': `crowdhandler=${token}; path=/; Secure`,
355355
}
356356
let redirectLocation
357357
if (queryString) {
@@ -471,7 +471,7 @@ async function handleRequest(event) {
471471
status: 302,
472472
headers: Object.assign(helpers.noCacheHeaders, {
473473
Location: redirectLocation,
474-
'Set-Cookie': `crowdhandler=${responseBody.token}; path=/; Secure; HttpOnly`,
474+
'Set-Cookie': `crowdhandler=${responseBody.token}; path=/; Secure`,
475475
}),
476476
})
477477
} else {
@@ -509,7 +509,7 @@ async function handleRequest(event) {
509509
if (validToken.test(responseBody.token) === true) {
510510
modifiedOriginResponse.headers.append(
511511
'set-cookie',
512-
`crowdhandler=${responseBody.token}; path=/; Secure; HttpOnly`,
512+
`crowdhandler=${responseBody.token}; path=/; Secure`,
513513
)
514514
}
515515
//Set integration method cookie

0 commit comments

Comments
 (0)