amazon web services - Set Cookies not setting up in the browser -
i'm using aws lambda function setup api gateway. have been trying set-cookies application though shows in console headers, not setting in browser.
callback(null, { statuscode: 302, headers: { 'access-control-allow-origin': '*', 'access-control-allow-methods': 'get,put,post,delete,patch,options', 'location': "https://example.com", 'set-cookie': cookiestring, 'content-type': 'application/json' }, body: null } );
https://aws.amazon.com/blogs/compute/simply-serverless-using-aws-lambda-to-expose-custom-cookies-with-api-gateway/ tried implementing in browser cookies not set.
try set path of cookie:
set-cookie:mycookie=foo; path=/; httponly
Comments
Post a Comment