Is there way to check if link to image is working before adding src attribute to image? What I have tried:
- First idea was to make ajax call to image src but I cannot be sure that CORS pocily will allow it.
- Adding onError callback into my component. No luck because I use SSR and it causes problems
My use case: I'm building text editor and user can insert link to image. I want to know if link is ok before inserting it into my model.