I want to make an application, deployed on ios, android and web, which embed a webview, the webview will render a wordpress site that i own, and the user must be connected to this website, without login again in the webview.
While i figured out how to create the connection cookies for ios and android, i'm stuck on the web implementation.
The web implementation use an iframe, the flutterflow app and the wordpress app are both subdomains of the same domain, so the iframe and the website can share cookies, but they're not considered as same origin, so my set-cookie header sent by the wordpress server aren't set by default by the browser (i've configured the wordpress server to allow orgin and frame from my flutter flow web app)
I've noticed that my auth ApiCall (which should set-cookie for the web app embedding the iframe) is an XMLHttpRequest, in case of Cross-Origin XMLHttpRequest that should accept cookies from the server response, it's a mandatory to set the parameter 'withCredentials: true' but i didn't find a way to do it with flutter flow app, is it possible?
Is it possible to set 'withCredentials: true' to web builded APICalls ?
Database & APIs
-Send XMLHttpRequest to auth url with withCredentials TRUE, in browser's console, on flutterflow app page -> Cookies sets, CONNECTION OK
-Send XMLHttpRequest to auth url with withCredentials FALSE, in browser's console, on flutterflow app page -> Cookies not sets, CONNECTION DOWN
-Connect to the wordpress site with my browser, then navigate to the flutter flow app page embedding the iframe -> Cookies sets, CONNECTION OK
-Use my flutterflow app connection form (posting data to the same auth url, with flutterflow ApiCall) -> Cookies not sets, CONNECTION DOWN
No