miagi-anhph commented on issue #1669:
URL: https://github.com/apache/cordova-ios/issues/1669#issuecomment-5031269615
Thanks @GitToTheHub and @breautek
I figured out that it was a CORS error. I have fixed it on the server side
to allow access from the origin `app://localhost`. It seems that starting from
cordova-ios 8, this origin has changed. Everything is now working.
Additionally, I encountered an error when selecting and uploading photos on
cordova-ios 8.1. If you set `Camera.DestinationType.FILE_URI`, it will result
in a "not allowed to access" error. You need to change it to
`Camera.DestinationType.DATA_URL`.
I am still continuing to test the app on cordova-ios 8.1.
```
var option = {
quality: 80,
sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM,
destinationType: Camera.DestinationType.FILE_URI,
correctOrientation: true
}
```
--
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]