Hi -
I have hosted my app on Azure. I have hosted the WebUi and WebAPI on separate servers. I had initially enabled CORS in Azure for WebAPI hosting as result the Chat didn't work. So i completely removed that setting and added the list to the CORS white list in appsetting.
After doing so the Chat functionality started working . When I click on the Tenant Menu at the host login , the tenant doesn't load initially but when you change the Edition Filter and then select Assigned or Not Assigned the tenant grid loads fine. When you move back to All then also it works fine. Below is the error message from Chrome developer tool :
Failed to load <a class="postlink" href="http://xxx.api.yyyy.com/api/services/app/Tenant/GetTenants?Filter=&EditionIdSpecified=false&MaxResultCount=10&SkipCount=0">http://xxx.api.yyyy.com/api/services/ap ... kipCount=0</a>: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxx.yyyy.com' is therefore not allowed access. The response had HTTP status code 400.
<a class="postlink" href="http://xxx.api.yyyy.com">http://xxx.api.yyyy.com</a> : This is the API hosting details
<a class="postlink" href="http://xxx.yyyy.com'">http://xxx.yyyy.com'</a> : This is the WebUi details
Note : This is only happening in the Tenant grid, rest all works fine.
1 Answer(s)
-
0
@maharatha can you check your Logs.txt file for your api website ?