sarathi0333 commented on issue #1354:
URL: 
https://github.com/apache/cordova-android/issues/1354#issuecomment-1313710735

   Initially, I had the default config `https://localhost` now I updated the 
android target SDK to 31. After this, I started getting issues. My REST API 
returns a cookie and tries to set it. But it throws the error
   "This set-cookie header didn't specify a _samesite_ attribute and was 
defaulted to `samesite=lax` and was blocked because it came from a cross-site 
response which was not the response to top-level navigation. The _set-cookie_ 
had to have been set with "`SameSite=None`" to enable cross-site usage.
   
   Note: I cannot change the cookie response on the server side.
   
   To overcome the above issue, I tried to configure a custom `scheme` and 
`hostname` equal to my real server. After which I started getting "Response to 
preflight request doesn't pass access control check: No 
'Access-Control-Allow-Origin".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to