N
N
Nikita Dergachov2017-08-22 16:16:55
CORS
Nikita Dergachov, 2017-08-22 16:16:55

How to send images in svg format?

Good afternoon, I ran into a problem with the site api returning links to images on the server with jpeg and png, everything works, but with svg it gives an error.

XMLHttpRequest cannot load svg. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' is therefore not allowed access.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question