im facing some problems while setting up the authentication functionality of my react - flask application.
This is what my headers look like and what the error says.
I am running server sided sessions that i am using redis for. After the POST request i want to return a cookie in the future, because of that i need Credentials to be true.
Thats my frontend:
And the backend:
Axios is installed and flask-cors as well.
I already spent a view hours in trying to solve this problem mostly in vary with the post() headers and/or the CORS() settings but this is still what gave me the most promising result.
I also did read a lot of posts about this topic but couldn't find a solution.
Thank you very much and any advice will be appreciated very much.
you need to add CORS preflight by OPTIONS method reply in backend other than access control headers.