Not working on iOS with take photo option #1135

Closed
opened 2020-01-05 20:51:39 +00:00 by eheinz57 · 1 comment
eheinz57 commented 2020-01-05 20:51:39 +00:00 (Migrated from github.com)

We have an angular 8 site using this control. On an iOS mobile device (might happen on other mobiles), the user chooses to take a photo, an error is received.

Looking at the web inspector on that device, I see error messages on the console talking about origin not allowed by Access-Control-Allow-Origin policy. However, I can use the same device and page to upload a photo when browsing the device's library. It only occurs when taking a photo and it has been confirmed to happen on iOS safari and chrome browsers. I was testing on an iPad Air.

Any ideas?

We have an angular 8 site using this control. On an iOS mobile device (might happen on other mobiles), the user chooses to take a photo, an error is received. Looking at the web inspector on that device, I see error messages on the console talking about origin not allowed by Access-Control-Allow-Origin policy. However, I can use the same device and page to upload a photo when browsing the device's library. It only occurs when taking a photo and it has been confirmed to happen on iOS safari and chrome browsers. I was testing on an iPad Air. Any ideas?
eheinz57 commented 2020-01-07 04:34:03 +00:00 (Migrated from github.com)

I ended up changing our infrastructure to upload the files to the same origin and then hop that call over to our gateway. This allowed me to get around the error for now.

I ended up changing our infrastructure to upload the files to the same origin and then hop that call over to our gateway. This allowed me to get around the error for now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1135