-2

I'm getting this error when i try to upload some picture via Ionic 4 using Uploadcare (Cannot display the image because of the error) How could I fix that? Thanks you so much

ERROR

UPDATED:

Now im having this error without doing anything... don't know why ANOTHER ERROR

M. Mariscal
  • 1,226
  • 3
  • 17
  • 46

2 Answers2

1

You're sending extra headers in preflight requests. Most likely this is some framework naively adding headers to all requests disregarding the host.

Dmitry Mukhin
  • 6,649
  • 3
  • 29
  • 31
  • there's a better answer here: https://stackoverflow.com/questions/48855015/uploadcare-delete-via-api-issue – Dmitry Mukhin Feb 12 '19 at 07:33
  • bolshoy spasiva zu pomosch Dmitry, but i dont think so, the problem is following this tutorial: https://www.youtube.com/watch?v=xbIhn45Mjgg&list=PLYxzS__5yYQnpK36-GJjm7IEAuHR7IExa&t=0s&index=5 , and just changing the PUBLIC KEY, used from tutorial, its working! why? i cannot understand this problem – M. Mariscal Feb 12 '19 at 10:46
  • please read answer for the question I linked. there's an elaborate explanation on what's going on here. – Dmitry Mukhin Feb 12 '19 at 13:46
  • Sorry its not helpful because im doing Ionic 4 and its quite different (Im not using Ajax) – M. Mariscal Feb 13 '19 at 11:43
0

Finally it has been resolved... Maybe some cache or something like that (I was also cleaning cache on google), but didnt get any error on Google Chrome, i was constantly doing force-refresh but still the problems before... Now its uploading and didnt get any error. Thanks you so much anyway, i was also restarting the ionic server furthermore...

M. Mariscal
  • 1,226
  • 3
  • 17
  • 46