Error: Offsite media downloads are blocked
Installation and Configuration
I tried this and it is still not working. I am calling the site in a webview on my android app
michael:
It looks like the function fails if the $_SERVER['HTTP_REFERER'] is not set.
I've managed to get round it by setting it if its not set, in:
/data/config/config.php
if(!isset($_SERVER['HTTP_REFERER'])){
$_SERVER['HTTP_REFERER'] = 'your-domain-here.com';
}
Along with ALLOW_ALL_DOMAINS allows it to work, but I'm wondering if its that secure for a reason. I'm surprised your application isn't sending the HTTP_REFERRER along, that would be the better way to handle it. This way works though.