Skip to content

Cookie not working in iFrame #852

Closed
@lucianholt97

Description

Version

nuxt-i18n: 6.8.1
nuxt: ^2

Nuxt configuration

mode:

  • universal
  • [] spa

Reproduction Link

Steps to reproduce

Integrate nuxt website in an iFrame with a url to the non-default language.
Due to the lax cookie setting, the browser will block the cookie and somehow nuxt-i18n ignores the url and displays the default locale. Ironically this change is done after the asyncData hook, because the api requests are still done with the right Accept-Language header.

What is Expected?

Set the cookie also in cross origin cases to allow a safe iFrame integration.

What is actually happening?

The cookie is blocked on different domains

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions