Tag Info

New answers tagged


I had to create a .php so that I request the file through request.php?f=main.jpg instead of requesting it directly like domain.com/main.jpg It's a little ugly work around but it works. Of course I had to add the header Access-Control-Allow-Origin like this. That way I don't need to specify that header in .htaccess file. if (isset($_SERVER['HTTP_ORIGIN']) ...


Without the complete .htaccess I don't exactly know but when more processing is done within Apache adding the condition always might be needed: Header always set Access-Control-Allow-Origin "*" The manual explains it as follows: When your action is a function of an existing header, you may need to specify a condition of always, depending on which ...

Top 50 recent answers are included