We are using the DocuVieware July 2021 version for the ASP.NET framework 4.8 MVC views.
It is hosted within the Azure app service container. The HTTPS/SSL is terminated at the Azure side.
The problem is DocuVieware is internally generating the REST path dvapi3/docuvieware3api Url.
1.It is accessed via the HTTP protocol instead of the HTTPS protocol.
Wrong Url http://XXXXxx.azurewebsites.net/dvapi3/ ... erequest/1
Correct Url https://XXXXxx.azurewebsites.net/dvapi3/docuvieware3api/baserequest/1
2. The same application is accessed by multiple domains names (hostnames). These names are accessible via the X-Forwarded-Host header
So the document viewer API calls are blocked by the browsers and the document never loads in the browser.
Possible solution. While generating the URL please honor the X-Forwarded-Proto and X-Forwarded-Host headers while generating the URLs
Is there any workaround already exists for this issue?
It seems your code takes the relative URL instead of the absolute one.
Can you try to override the application URI? It should force the protocol and will provide the absolute URL to your app.
ApplicationUri parameter -> https://www.docuvieware.com/guides/aspn ... ring).html
Tell me if it corrects the issue or if I misunderstood it.
Thanks for the response.
As I mentioned, the application is a multi-tenant application with multiple subdomains are set up for the same application.
For example, the users can access the application via https://XXXXxx.azurewebsites.net/ https://YYyy.azurewebsites.net/ and https://ZZzz.azurewebsites.net/, etc.
I cannot use the ApplicationUri parameter which is common for every request.
Can you please help me to set up this relative URL for each request when generating the client-side HTML? Or please honor the X-Forwarded-Proto and X-Forwarded-Host headers while generating the URLs which are HTTP industry standards.
Please consider this as high priority issue...
The conversation had continued on our helpdesk and a ticket has been created on our side to implement a way to deal with such usage.
I'll keep you posted about any updates on this conversation.
Who is online
Users browsing this forum: No registered users and 1 guest