.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

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -