JSON calls to an IIS server return 403 Forbidden

I have IIS 7.5 setup with an wordpress site. I have created a virtual directory (and it made into a web application) to setup a MVC4 website. basically the main site (www.example.com) is the wordpress site and when link is clicked (www.example.com/order) then the order link points to the mvc4 site.
I have a few JSON calls on the MVC4 and I’m getting Forbidden on all of those calls.
any ideas on why this is happening? it is not a cross-origin problem.

Related posts

Leave a Reply

2 comments

  1. If you have, in your controller, something like this:

    return Json("Foo");
    

    replace it, with something like this:

    return Json("Foo", JsonRequestBehavior.AllowGet);
    
  2. Check the IIS server’s application settings to make sure the Anonymous Authentication is enabled. And disable all other Authentication module like the Windows Authentication.