Skip to content

Add crossorigin="use-credentials" in javascript module to allow credentials. #15125

@jmesa-sistel

Description

@jmesa-sistel

🚀 Feature request

Command (mark with an x)

- [ ] new
- [X] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

A clear and concise description of the problem or missing capability...

Add crossorigin="use-credentials" in javascript module to allow credentials.
In safari credentials are not send by default in a javascript module, so if the access to your webapp is protected with credentials in the backend, the module will not be loaded

Describe the solution you'd like

If you have a solution in mind, please describe it.

Just add crossorigin="use-credentials" in javascript module.
I found my problem after reading https://jakearchibald.com/2017/es-modules-in-browsers/ in No credentials section

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions