We have a working web report opening from UI action button in Flash. It shows a web page (API generated) with some information an buttons calling other Origam APIs - see attached image. But there is blank screen in HTML5 version (2021.2.0.2059). The web report code is pretty simple - standard HTML tags, CSS and Javascript code for buttons. Any suggestion what could be wrong? Thank you.
To check traffic I need to run it in http mode (not https). But I’m not able to login when I change the urls in appsettings.json to http only. I can se in the log the following error:
Hosting environment: Production
Content root path: C:\inetpub\html5test3
Now listening on: http://*:83/
Application started. Press Ctrl+C to shut down.
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.
warn: Microsoft.AspNetCore.Http.ResponseCookies[1]
The cookie 'idsrv.session' has set 'SameSite=None' and must also set 'Secure'.
warn: Microsoft.AspNetCore.Http.ResponseCookies[1]
The cookie '.AspNetCore.Identity.Application' has set 'SameSite=None' and must also set 'Secure'.
warn: Microsoft.AspNetCore.Http.ResponseCookies[1]
The cookie 'idsrv.session' has set 'SameSite=None' and must also set 'Secure'.
warn: Microsoft.AspNetCore.Http.ResponseCookies[1]
The cookie '.AspNetCore.Identity.Application' has set 'SameSite=None' and must also set 'Secure'.
warn: Microsoft.AspNetCore.Http.ResponseCookies[1]
The cookie 'idsrv.session' has set 'SameSite=None' and must also set 'Secure'.
warn: Microsoft.AspNetCore.Http.ResponseCookies[1]
The cookie '.AspNetCore.Identity.Application' has set 'SameSite=None' and must also set 'Secure'.
warn: Microsoft.AspNetCore.Http.ResponseCookies[1]
The cookie 'idsrv.session' has set 'SameSite=None' and must also set 'Secure'.
warn: Microsoft.AspNetCore.Http.ResponseCookies[1]
The cookie '.AspNetCore.Identity.Application' has set 'SameSite=None' and must also set 'Secure'.
I know about API settings in appsettings.json. I already tried to set it as PublicRoutes. There is /api/public in PublicRoutes and I tried both variants - change the Web report and API page path to /api/public/dailyPlan (didn’t work) and then to api/public/dailyPlan (didn’t work as well). See attached images. /api/public/dailyPlan error:
With api/public/dailyPlan I can access the page directly via URL https://10.10.10.252:9443/api/public/dailyPlan?id=... but not via the UI action web report button.
So. The API page itself should have api without the slash – since that works for you if you try manually. And the report (link) has to have the slash (/api) since that makes the browser redirect correctly.
This works only when the URL is defined in PublicRoutes. When it is defined in RestrictedRoutes or it is used directly - path as /api/PageName (api/PageName), it doesn’t work. Even the direct URL to the report is not working, if it is not defined in PublicRoutes.