Web Page behind SEO does not render as expected
Question

We have an on prem setup. one internal server and another on a public segment. The public server is behind some infrastructure that arrives on with a base uri that has "apps" inserted after the hostname.

I have an SEO on the public part that rewrites, www.sample.com/apps to the "none-site default" and that end up at the root. This works partially.

The internal server,  does not do the seo rule. and renders fine.

should be this


Anybody had the same issue or could advise?


mvp_badge
MVP

Hi Jo,


It seems clear by your picture that the loading of the CSS file is failing, hence your styling is not there.

My suggestion would be to inspect your page using Developer Tools, and see the files that are failing under Network:


You can see from which path is he trying and failing to load the CSS and this should help you pinpoint if the URL is failing or there is something blocking the CSS file.


Regards,
João

Hi João,

it looks as if it is not rewriting the OutSystemsUIWeb uri's.
https://hub.sdworx.com/apps/jltestapp/

So the browser is looking for them not using the /apps and is blocked by the reverse proxy.



mvp_badge
MVP

Hi Jo,


There are a lot of errors on the console related to files being blocked by CORS policy:




You can add the missing configuration by changing the web.config file.

As you are working on an on-premises infrastructure, you should have access to the server and to the web.config file directly. Otherwise you can use the Factory Configuration component to do this.


The changes to be done to set the CORS policy on the web.config file are described in this post.


Hope it helps.


Cheers,
João

Hi, 

yes i saw those.
As far as i understand it, these cors errors are a consequence of the reverse proxy replying, in stead of the outsystems server.

https://hub.sdworx.com/OutSystemsUIWeb/Theme.BaseTheme.extra.css?220

302 Moved Temporarily

And after that redirect, it will trigger the cors errors.

Thanks for looking at this :-)


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.