I’m facing the most strange error ever. Inspired by @jstlroot post here, I planned to implement his solution on my most recent project, but now I have an error, and this error only occurs using Safari.
basically I put a ‘set-cookie’ header by modifying conn with
Plug.Conn.put_resp_cookie("token", token, http_only: true, secure: false, max_age: 604800) I can easily check it works because for example on FF:
also on Google Chrome
But when it comes to Safari, It receives the ‘set-cookie’ header
But the Cookie does not get stored
So if an user refresh the page on safari, he needs to login again.
I know this is a very specific problem but I’m close to surrender and store the token in the local storage.