It is necessary to implement the uploading of a photo to a profile via a remote link. First I have to get an image on the front end to validate and sprinkle.

I tried through the canvas, tried to download via ajax, and get the security error "No 'Access-Control-Allow-Origin' header ...".

Is it possible to somehow somehow safely on Jquery get an image on the frontend, then overtake to base64, edit, create a blob object and send to the server?

  • one
    If I’m not mistaken on js, you won’t be able to download a picture from another domain, as well as manage the file structure on a local machine because of security, which is what they’re writing about =) - Oma
  • That yes, I decided to send a link to the backend, receive a base64 there, return it without saving to the front for the crop, etc., and send Blob object for validation and saving on the server - user3510544
  • To use cross-domain queries you need to knock on a tambourine . But, if it’s not scary to get a bunch of requests from bots, it’s better not to do so ... - DNS

0