D
D
Dmitry Arushanov2014-11-19 18:57:23
CORS
Dmitry Arushanov, 2014-11-19 18:57:23

How to setup cors in wordpress to get images?

Good day to all.
I am writing an application for mobile platforms. Using cordova.
Content is pulled from an external resource. Including pictures. For offline access to the application, I use the imgCache plugin. When I try to cache an image in the console, I see an error.
`XMLHttpRequest cannot load example.com/wp-content/uploads/2014/11/8.jpg. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' localhost:8100 ' is therefore not allowed access.`
The site from which I pull to wordpress. It is not possible to set up cors on WordPress so that it would correctly give these pictures. How to implement it?

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