Skip to content

Cookies not being generated except on localhost #471

Discussion options

You must be logged in to vote

what is your node env in the ec2 instance? The cookies are set to secure in a production environment and this is probably what's happening. See this for more info: https://stackoverflow.com/questions/73752871/aws-ec2-instance-does-not-set-cookie-when-sent-by-node-server-running-inside-it

You said you're using docker. the default NODE_ENV on the compose file is 'production'

edit this line in your docker-compose.yml file - NODE_ENV=production to - NODE_ENV=development

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
13 replies
@danny-avila
Comment options

@danny-avila
Comment options

@itrase
Comment options

@danny-avila
Comment options

Answer selected by itrase
@itrase
Comment options

@danny-avila
Comment options

@mycomp32
Comment options

@danny-avila
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants