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. enter image description here

enter image description here

try set path of cookie:

set-cookie:mycookie=foo; path=/; httponly 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -