I've installed Forem latest on DigitalOcean using the instructions here:
https://github.com/forem/selfhost#readme
I have encountered the dreaded blank page after creating the admin user as described here:
https://forem.dev/manuel/forem-blank-page-after-login-using-docker-221d
I can see from the Forem logs this is due to a origin header mismatch as below:
Sep 04 15:33:49 42Community.ayepeye.online forem-rails[2333]: W, [2022-09-04T15:33:49.976150 #10] WARN -- : [03fa6965-d49f-403a-a74d-5f323cc7286c] [dd.env=production dd.service=rails-production dd.trace_id=2356142424308383989 dd.span_id=0] HTTP Origin header (https://42community.ayepeye.online) didn't match request.base_url (https://42community.ayepeye.online)
This is also discussed in the GitHub issues here:
https://github.com/forem/forem/issues/13696
I don't see any way to fix this issue, I have tried overriding the APP_DOMAIN variable and restarting but without luck.
Hopefully someone can help.
Top comments (1)
I just dealt with this problem, and first of all, in APP_DOMAIN it is advised to write the IP address of the server, not the domain.
And secondly, I noticed that this bug happens only if I log in from www. Without www, everything works fine. I need to somehow make a redirect...