Quantcast
Channel: CORS Settings
Viewing all articles
Browse latest Browse all 2

CORS Settings

$
0
0

Hi,

I have an API hosted on Azure Web App Service. I have a Web Application hosted on a different Web App and using a different domain. The Web Application, makes calls to the API hosted on Portal. So to resolve CORS issue, I have added the  Web Application domain in API's Web Service CORS settings. So the scenario is this:

Web Application
https://abcd.com

Web API
https://xyz.com

So I have added "https://abcd.com" in the cors settings of the API Service in the Azure Portal.

But I have give a customised URL to all my users using a wildcard ssl certification and creating sub domains for them.

so, our clients get 
https://1.abcd.com

https://2.abcd.com

https://3.abcd.com

But this does NOT work as the CORS Settings has just "https://abcd.com". I tried adding cors settings for "https://*.abcd.com", but the Azure Portal did not allow that. I cannot keep adding the cors settings for all my clients as it will become a very tedious and manual process. 

So I need a suggestion to make this work. I use .Net for both my Web App and Web API.

Thanks,

Hemesh


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images