Hi,
I have a scenario where a user opens a url in Safari browser, which then has a cookie set from the response. When my app opens, I am expecting the SFSafariViewController to be able send that cookie in a request to the same server that was visited in Safari.
When I try this scenario, the cookie is set in the Safari browser, but when my app launches and a SFSafariViewController is launched to the same server endpoint, no cookie is received on the server side.
Example sequence below:
1. User loads "http://localhost:1337" in Safari browser. Server responds with a cookie of "value=X; Path=/"
2. User loads app and app launches a SFSafariViewController with url of "http://localhost:1337/mypath"
I expected my server to receive the cookie "value=X" in the request "http://localhost:1337/mypath" made by the SFSafariViewController, but nothing is received on the server. If I try the same request from the Safari browser, then the cookie is received by the server.
Is this type of scenario viable with SFSafariViewController? From the docs it mentions that SFSafariViewController can access cookie from Safari browser so i expected this to work.
Any help or pointers are appreciated.