t-knapp commented on issue #922:
URL: https://github.com/apache/cordova-ios/issues/922#issuecomment-2109405899

   I face a similar problem with cookies on iOS (cordova-ios v7.1.0).
   
   Here is my config.xml
   
   ```
   <platform name="ios">
           <preference name="scheme" value="app" />
           <preference name="hostname" value="localhost" />
           [...]
           <config-file target="*-Info.plist" parent="WKAppBoundDomains">
               <array>
                   <string>localhost</string>
                   <string>api.myapp.cloud</string>
                   <string>db.myapp.cloud</string>
               </array>
           </config-file>
           <preference name="LimitsNavigationsToAppBoundDomains" value="true" />
          [...]
   ```
   
   There is no SSO or InApp Browser mechanism enabled to set an authentication 
cookie. Authentication is done by sending an initial http request to the 
endpoint `api.myapp.cloud`. The server sets the `Set-Cookie`-Header of the 
response. This cookie is somehow not stored in the WebView (Dev-Tools -> 
Storage -> Cookies is empty)
   
   I also set the `hostname` preference to the same domain `api.myapp.cloud` 
but it does not work.
   
   Does iOS treat cookies as "third-party" when the `hostname` preference is 
not equal to the actual hostname of the request?
   
   Any ideas?
   
   Thank you.


-- 
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: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to