Response Header has 2 set-cookie (AWSALB and AWSALBCORS)

In my application, I added secure cookies and I deployed it to the remote server. However, when I do a request, I can see that there are 2 identical cookies (1 is AWSALB unsecure, 2 is AWSALBCORS secure):

set-cookie AWSALB=J8Hw07Jy8ein8Hei2SOME_NUMBERSMiRhCvCtL+1psSOME_NUMBERS84qI2vb/lmSOME_NUMBERS61i/LWSOME_NUMBERSLK2/itJs7pSOME_NUMBERSqcE8Y2/D3C55sSOME_NUMBERSGQUzxBh; Expires=Fri, 15 Jan 2021 07:19:43 GMT; Path=/
set-cookie AWSALBCORS=J8Hw07Jy8ein8Hei2SOME_NUMBERSMiRhCvCtL+1psSOME_NUMBERS84qI2vb/lmSOME_NUMBERS61i/LWSOME_NUMBERSLK2/itJs7pSOME_NUMBERSqcE8Y2/D3C55sSOME_NUMBERSGQUzxBh; Expires=Fri, 15 Jan 2021 07:19:43 GMT; Path=/; SameSite=None; Secure

I investigated it and found out that it is related to AWS Load balancer, but I am unable to further investigate. I do not want to see unsecure cookie in response header. How can I remove it? Where should I look into?

3 Related questions 3 ELB HAproxy and cookies 2 AWS API-Gateway is adding an AWSELB Cookie. Some of the time 1 API Gateway can't access Cookie header Related questions 3 ELB HAproxy and cookies 2 AWS API-Gateway is adding an AWSELB Cookie. Some of the time 1 API Gateway can't access Cookie header 10 AWS Application Load Balancer : Request Header Or Cookie Too Large 11 Why is rails constantly sending back a Set-Cookie header? 8 Setting Cookie in http response header from AWS lambda Node JS 4 HttpOnly Cookies with AWS Cognito 7 AWS ALB sticky cookie issue 2 How can I generate a Set-Cookie integration response header in AWS API Gateway? 1 When the value of the AWSALBAPP cookie is set as _remove_ Load 7 more related questions Show fewer related questions Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like