Cross domain authorization fails #1139
-
I have the authorization issue when using a site on a different domain:
In the browser, I get 401 and Unauthorize after logging in. I want to use one docker instance on remark.example1.com for all of my sites, including other domains. I presume this is supported? I have enabled CORS in my example1.com site (please check the virtual host config down below). Basically, I have added both sites example1.com and example2.com in yml and disabled docker cors with PROXY_CORS=true, but it's not working. If I switch to use the exact site either example1 or example2 it works but when I try to access e.g. site example2.com on remark.example1.com it doesn't work. This is my yml file
My Apache virtual host for remark.example1.com looks something like this:
Thanks for help. Originally posted by @gradosevic in #1129 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 12 replies
-
Hello, Is it possible to host Remark on a different server? Can someone point into a direction or post what necessary? |
Beta Was this translation helpful? Give feedback.
-
#1163 is a relevant discussion. In short, we don't know how to make it work at the moment, maybe we should even write it down into documentation so that it would be known to the users. |
Beta Was this translation helpful? Give feedback.
-
faced the same problem, but it seems that everything worked before |
Beta Was this translation helpful? Give feedback.
-
no sure if this was solved and how... I have remark42 on sub.domain1.com working on sub.domain1.com/web (demo page), working good on domain1.com when called on the website and possible to add/delete comments, but when calling from domain2.com it doesnt work (i get 401 error) This is what I have in my docker-composer.yml:
when using it in domain2.com I get the infamous 401 error anyone can help ? |
Beta Was this translation helpful? Give feedback.
-
I found a solution for your particular problem @hycday. You can set or not set The requirement for remark42 to work on a different domain than the one you're embedding it on is
And this error in the login set-cookie in Chrome dev console: I'll write that down in the documentation. UPD: here is it. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have an almost similar issue, all auth providers are works but email auth returns "Forbidden" in UI and "Unauthorized" in the API response. docker-compose
Screenshots: Logs
I tried a lot of different combinations of settings and both images (latest/master), maybe someone have any suggestions on how to solve this? |
Beta Was this translation helpful? Give feedback.
-
Current, up-to-date documentation on the topic: https://remark42.com/docs/manuals/separate-domain/ |
Beta Was this translation helpful? Give feedback.
-
Any updates on this issue? Are there any plans on solving it? |
Beta Was this translation helpful? Give feedback.
Current, up-to-date documentation on the topic: https://remark42.com/docs/manuals/separate-domain/