on 2022 Jun 16 4:30 PM
Hi folks,
I have developed a mobile app using SAP Hybrid Application Toolkit(HAT) which works fine on Android but when it comes to iOS, attachments are not getting uploaded to backend. I am using the UploadCollection control to upload files. I checked console log and got this
Network preview
I tried setting up the header parameter via controller Access-Control-Allow-Origin: *but it didn't work. Maintained following entries in config.xml file
<access origin="*" />
<allow-navigation href="*" />
<customHeaders>
<add name="Access-Control-Allow-Orixgin" value="*" />
</customHeaders>
still the Origin is always NULL.
All other functionality of the app are working fine only while uploading attachments (file://) the backend call is failing. Can anyone help on this?
Request clarification before answering.
Hi Kathat,
The null origin should be added in Mobile Service cockpit instead of the config.xml file. Please refer to https://blogs.sap.com/2020/03/16/hybrid-application-toolkit-apps-for-ios-switching-to-wkwebview/ on how to do it.
Regards,
Zhigao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.