Проблема с CORS в fetch
У меня есть сайт (yfiles.22web.org)
При попытке получить с него данные с помощью fetch() с другого сайта получается ошибка:
> fetch('http://yfiles.22web.org')
< Promise {<pending>}
Access to fetch at 'http://yfiles.22web.org/' from origin 'http://bclib.22web.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
VM117:1 GET http://yfiles.22web.org/ net::ERR_FAILED 200
(анонимная) @ VM117:1
VM117:1 Uncaught (in promise) TypeError: Failed to fetch
at <anonymous>:1:1
Содержимое файла .htaccess на сайте yfiles.22web.org:
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Fri, 20 Mar 2014 00:00:00 GMT"
Header set Access-Control-Allow-Origin "*"