• Not Answered

OPTIONS call failing for ItemService REST Api login

I am trying to perform a login before calling GET on the ItemService, but when the browser tries to make the OPTIONS call to sitecore API, it receives a 404 response. I have also updated web.config as described in the solution here: https://community.sitecore.net/developers/f/8/p/4148/12375#12375, but it is still responding with a 404. The response header does acknowledge the web.config changes because I see in response headers it has the following:

  1. Access-Control-Allow-Headers:*
  2. Access-Control-Allow-Methods:GET,POST,OPTIONS
  3. Access-Control-Allow-Origin:https://mysite.localhost

Details on the application:

  1.  
    Sitecore version: 8.2
  2. Calling application type: Angular 4 app

Also, I am able to make successful calls using Postman. It just doesn't work when I am trying to call it via my Angular application.

3 Replies