.htaccess - Enable CORS in Wordpress to use JSON -


i'm trying enable cors in wordpress. found lot of documentation. nothing works me. same error.

xmlhttprequest cannot load  'access-control-allow-origin' header contains invalid value ''.  origin 'file://' therefore not allowed access. 

try put code in .htaccess , in header.php file in wordpress.

test url in http://client.cors-api.appspot.com/ , get.

fired xhr event: loadstart fired xhr event: readystatechange fired xhr event: progress fired xhr event: error  xhr status: 0 xhr status text:  fired xhr event: loadend 

i'm lost, try everithing nothing works.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -