Access to the files in 'web' folder not allowed

I’m getting this, when i’m trying to show images with photoswipe library:

XMLHttpRequest cannot load No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4444' is therefore not allowed access. The response had HTTP status code 404.

It’s not specific for http://localhost:4444 - i’m getting the same error on my server.
It’s works ok, when images are placed on my vps.

Hi Anton,

Please see this:

If the request goes out as CORS, make sure all the appropriate HTTP headers are present.