Getting CORS Error for Azure Search (Suggest) API In Angular ( http://localhost:4200). RRS feed

  • Question

  • I am using Azure Search (Suggest) API this API is working fine in POSTMAN  but when it comes to Angular (http://localhost:4200) It is giving the CORS error please help me  how to make Azure search api should allow from all the origins.

    Thank you

    Prashanth G Hiremath 

    Friday, March 22, 2019 7:43 AM

All replies

  • Hi Prashanth,

    Have you changed the CORS options on your azure-search index to "allow all origins"? The default for CORS Options is disabled, meaning no origins or IP's are accessible through CORS. So make sure you enable it. 
    Saturday, March 23, 2019 11:14 PM