Skip to content

Commit 7707d2b

Browse files
committed
Fix cookie domain: should not include the protocol (http/s)
1 parent 6b4814b commit 7707d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function cookiesHeaders (config) {
142142
// extra options for all cookies we write
143143
// var date = new Date()
144144
// date.setTime(date + (config.cookieExpiryInSeconds * 1000))
145-
const options = '; Domain=https://' + config.websiteDomain + '; Path=/; Secure; HttpOnly'
145+
const options = '; Domain=' + config.websiteDomain + '; Path=/; Secure; HttpOnly'
146146
// we use a combination of lower/upper case
147147
// because we need to send multiple cookies
148148
// but the AWS API requires all headers in a single object!

0 commit comments

Comments
 (0)