Cordova Slack Digest

Sun, 27 Nov 2022 08:21:19 GMT

User count: 4722

Join the conversation at slack.cordova.io

Channel #general (1 messages)


Sun, 27 Nov 2022 07:21:24 GMT

@zahid2cyborg says

I love Cordova!!

Channel #cordova-ios (1 messages)


Sat, 26 Nov 2022 14:35:54 GMT

@james says

Hello, I was wondering if this might be the best place to ask a cordova-ios development question? I am creating an iOS cordova version of my existing web app, which uses cookies. I‘ve noted that the origin header on any HTTP fetch request is <app://localhost> This can be changed to something else in the config.xml, but it can’t use http or https as the protocol. My server APIs (on AWS API Gateway + Lambda) don‘t allow any origins other than http or https for the Access-Control-Allow-Origin response headers, so I’ve had to change them to Access-Control-Allow-Origin: * . However, this means that I can‘t use credentials: 'include' (to include cookies) when making the request, as <https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#sending_a_request_with_credentials_included|the Fetch API doesn’t allow that> with Access-Control-Allow-Origin: * . So am I right in thinking that I can't make fetch requests from an iOS cordova app to an API that uses cookies? Or is API Gateway the problem?