Support » Plugin: JSON API » No Access-Control-Allow-Origin header is present – error!

Viewing 2 replies - 1 through 2 (of 2 total)
  • me too:
    No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.

    Just add this line to your function.php file and it will work.
    header("Access-Control-Allow-Origin: *");

    NOTE: updating the current theme may remove the line from your function.php file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No Access-Control-Allow-Origin header is present – error!’ is closed to new replies.