I tried get data from another webpage with XMLHttpRequest but I got error CORS header ‘Access-Control-Allow-Origin’ missing. I already tried add this line to htdocs/.htaccess and /.htaccess:
Header set Access-Control-Allow-Origin *
Still I getting CORS header ‘Access-Control-Allow-Origin’ missing error.
Please help!
It’s probably blocked by the security system, which makes sure your website is only accessible by normal browsers. Unfortunately, there is nothing that can be done about it.