Angular-cli: Add crossorigin="use-credentials" in javascript module to allow credentials.

Created on 19 Jul 2019  路  3Comments  路  Source: angular/angular-cli

馃殌 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?

Most helpful comment

Hi, just a small correct re the above, it is available in 8.1.

All 3 comments

This feature will available in 8.2
Kindly check https://github.com/angular/angular-cli/pull/14844

Hi, just a small correct re the above, it is available in 8.1.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

5amfung picture 5amfung  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments

jmurphzyo picture jmurphzyo  路  3Comments

naveedahmed1 picture naveedahmed1  路  3Comments

NCC1701M picture NCC1701M  路  3Comments