1

My problem is that I have a web page with 2 domains, one for backend and another one for frontend, my backend is in flask, and i use flask-session module to create sessions, it works perfectly in almost everywhere but not in iphone, in mac works but not in iphone, so i realize that deactivating "Prevent Cross-Site Tracking" the session works perfectly in iphone, so the problem i see is that as my back and front have different domains it converts my session-cookie in third-party coockie, which is blocked in iphone, my question is ¿Does anybody knows a way to fix that? i don´t want to put my back and front in the same domain, either ask users to disabled "Prevent Cross-Site Tracking".

thanks in advance

Juanito
  • 11
  • 3

1 Answers1

0

I solved with the following settings.

app.config['SESSION_COOKIE_SECURE'] = True

app.config['SESSION_COOKIE_SAMESITE'] = 'None'
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
taiki
  • 1