New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show any domains in the preview (multidomain case) #126
Comments
I suspect this is related to the header "X-Frame-Options" in Contao. See: You can overwrite the setting normally with an entry in /app/config/config.yml Possibly this can also be adapted automatically by the developers. |
It's not related to the X-Frame-Options. Cookies are bound to a domain so when you log in, enable the FE preview and then switch to a different domain, that cookie is not sent to the server and thus you'll be a logged out user unknown to the application. You cannot just switch domains and remain logged in. |
@Toflar thx |
Well, the X-Frame-Options could also be an issue but we don't even get there 😄 |
It's a I have now inserted these lines https://community.contao.org/de/showthread.php?72633-Contao4-Dieser-Inhalt-kann-nicht-in-einem-Frame-angezeigt-werden&p=487611&viewfull=1#post487611 into the config.yml. now it works.
hypothetically:
and moreover: |
Well, of course it's an
Yes, we do. But that's nothing new, it's the way cookies worked since they were first specified in 1997 😄 |
Yes that's clear. I thought we were one step further because we moved the error from the browser to the contao and maybe there's the possibility to display an error template e.g. "to use the preview please log in". 1997! I can't know that, it was before our foundation... 😄 |
We have discussed this topic at the Contao Camp 2019. Our idea was to use an Open ID like token to log in a user on all existing domains by sending Ajax requests either when a user logs in or when a user first opens the If we go for the login variant, the back end login screen would show a "log in on all domains" checkbox and a "you are being logged in" screen which is shown while the Ajax login requests are running. This would also require a logout screen with a "you are being logged out" message, which is shown while the Ajax logout requests are running. If we go for the |
The checkbox should only appear if more than 1 domain is active. |
I wonder if this is kinda solved in 4.9? If you open a preview URL of a separate domain, you‘re now forced to log in to the back end, so preview works „automatically“. Thanks to the new preview bar, theres no frame issue anymore. |
I think so, too. |
When I'm logged over a domain, but I have multiple domains in the backend and I want to see content of another domain in the preview, nothing will show. It would be great when the preview automatically works for each domains. Otherwise it's important to be logged over the domain I want to see in the preview. But then I cannot benefit from the multidomain function a lot.
The text was updated successfully, but these errors were encountered: