How to solve CORS error for application access via azure proxy

Shabin Suresh 211 Reputation points
2025-03-17T20:56:04.9866667+00:00

While configure an on-premise application for remote access through application proxy in azure active directory, HRWeb and API end point to different domain ( hrweb.contoso.com and hrwebapi.contoso.com) both of them are published through azure, facing issue with CORS error. If we remove the particular domain, then the site is reachable and no CORS error. could you please help to resolve.

Thanks,

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Achraf Ben Alaya 1,311 Reputation points MVP
    2025-03-19T09:44:54.8133333+00:00

    hi , you need to make sure the server should include headers like : Access-Control-Allow-Origin: https://hrweb.contoso.com

    Access-Control-Allow-Methods: GET, POST, PUT, DELETE

    Access-Control-Allow-Headers: Content-Type, Authorization

    Also , try to update the application proxy body like in the image i shared application proxy settings If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.