iframe-usage / problems with 'barrier'

  • Hi!

    When using an iframe to open a website in it I have quite some problems e.g. with sites like this one:

    https://www.brauschmie.de/

    The first "layer" on this site is an age barrier (because of alcohol information).
    The site opens in an iframe, I check the age, the site reloads... and it show the barrier again, and again, and again...

    I cannot manage to get past the barrier for reasons I do not know. *unsure*

    Maybe some else knows how to solve this?

  • Hello everybody,

    I managed to do a step forward and found the reason for the problem.
    Alas I cannot see any solution to solve the problem...

    The problem is caused by the SameSite-attribute for cookies.
    Since late 2019 or early 2020 Google Chrome checks the attribute with a default setting of "lax".

    Others browsers do these checks, too, but take no consequences.
    Chrome simply blocks the cookie and therefore the site tries to set it again and again.

    Does anyone have any idea to solve this?
    It is nearly impossible to image that I am the only one who feels disturbed!?

  • first, plz do not post the same stuff in multiple threads...

    and.. what are you trying to show in your iframes ?

    i think it was said, that sites can prevent to be displayed in iframes, there is not much to do about it.
    same with cookies. this has nothing to do with krpano, its just web security.
    if you don't have control over your sites you want to show in your iframe, you probably can't fix this.

    https://thisinterestsme.com/stop-page-loaded-inside-iframe/
    https://ziplineinteractive.com/blog/how-to-pr…d-in-an-iframe/
    https://stackoverflow.com/questions/2117…ifferent-domain
    https://web.dev/samesite-cookies-explained/

    i do use iframes inside krpano, but only to show local html files

  • At first: the problem occured in different plugins I bought and I wanted at least one solution.
    Of course I post the same question in each of them because they may handle it in a different way.

    Since I got ignored in all of the threads I tried to figure out what's the reason for the issue.
    After finding the reason I think it is a kind of "duty" to clarify the issues - and to show that it has nothing to do with the plugins themselves.
    Doing this I want to clarify that the developers of these plugins don't have to answer anymore.

    Nevertheless, you summarized quite correctly: "if you don't have control over your sites you want to show in your iframe, you probably can't fix this."

    Sad but true... so, sooner or later, iframes will be completely useless.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!