Skip to content
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

Send credentials with on-demand-entries-ping again #3968

Closed
wants to merge 1 commit into from
Closed

Send credentials with on-demand-entries-ping again #3968

wants to merge 1 commit into from

Conversation

ivan-aksamentov
Copy link

@ivan-aksamentov ivan-aksamentov commented Mar 8, 2018

In client/on-demand-entries-client.js parameter { credentials: 'same-origin' } of fetch() has been overwritten with { credentials: 'omit' } when universal-webpack has been merged. This currently prevents on-demand-entries-ping requests from sending cookies which may be required for some development configurations, for example, for authentication. This pull request rolls it back to credentials: 'same-origin'.

See also:

@arunoda
Copy link
Contributor

arunoda commented Mar 8, 2018

We can't send cookies with this request as a result of our multi-zones feature. #2498 is fine at that time since we didn't had that feature.

Currently, we can't do that. As the original PR author mentioned, I suggest to use a workaround.

@arunoda arunoda closed this Mar 8, 2018
@sushantbs
Copy link

sushantbs commented Mar 11, 2018

So if my server has a middleware that checks if the user is authenticated (based on cookies) and branches out a different flow (e.g redirect to login page) if she isn't, then how do I filter out the on-demand-entries-ping calls during dev? Is that work around currently, the only way to do this?

@lock lock bot locked as resolved and limited conversation to collaborators May 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants