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; SecureI 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