Answer the question
In order to leave comments, you need to log in
Cross-site communication directives (CORS policy) for Apache - does not work on iOS. What is done wrong?
Hi 6) I have image files
on my hosting in the https://my-migration.com/files/images/social/ folder. I try to access them from the bulgaria.my-migration.com subdomain, but the files are not uploaded and I get the following warning:
Access to fetch at ' https://my-migration.com/files/images/social/viber.jpg ' from origin ' https://bulgaria.my-migration.com ' 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.
<FilesMatch "\.(jpg|png)$">
SetEnvIf Origin "^http(s)?://(.+\.)?(glideapps\.com|my\-migration\.com)$" origin_is=$0
Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is
</FilesMatch>
Header set Access-Control-Allow-Origin "https://bulgaria.my-migration.com"
Answer the question
In order to leave comments, you need to log in
Header set Access-Control-Allow-Methods: "GET, OPTIONS"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question