I’m using a Discourse forum as the comments section for my blog, which is on a separate domain.
I’m trying to use the Discourse full app embed, but users can’t login, reply, or interact at all from the embed.
When someone tries replying, it redirects them to sign in on a new page, even if they’re already logged in.
Signing in on over there doesn’t help.
It sounds like it’s a problem with cross site cookies.
Is there any way around this?
Any fix?
Sorry, I’m not really familiar with all these cookie stuff, so I used AI to understand what’s going on and research possible solutions.
If you don’t like AI, you can stop here.
I put what I got from them below, but this post itself, including all formatting, was written using my Natural Intelligence.
How Gemini summarized the problem.
It sounds like there are right ways to do this, but Discourse would have to implement them.
Lilly
(Lillian )
2
is your Discourse up to date? make sure you update to latest version. i have no problems replying when logged in to the correct forum.
replying as anon opens a new tab to log in as explained here:
Falco
(Falco)
3
Enter the rails console and set the same site cookie to none.
cd /var/discourse
./launcher enter app
rails c
SiteSetting.same_site_cookies = "None"
Yes.
Within the same domain, or across different sites?
I thought of that, but that’s very insecure, obviously not a good idea.
Just a note that the person who suggested that was the one who helped make the feature
.
RGJ
(Richard - Communiteq)
7
Cross domain embedding is not always the best idea either, but hey.