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

Problem add item in bag #3

Open
AlexMasturkov opened this issue Sep 2, 2018 · 7 comments
Open

Problem add item in bag #3

AlexMasturkov opened this issue Sep 2, 2018 · 7 comments

Comments

@AlexMasturkov
Copy link

If I use Chrome I can add items in a cart and it shows how many items I have.
But when I use Edge or IE it is impossible to add any items into the cart .
After pressed " add to bag " it is nothing to added.
Anybody has the same issue?

In addition, it is the same problem when I use original package "GraniteHouse-master"

@PGTBoos
Copy link

PGTBoos commented Sep 10, 2018

Same here,
Firefox are OK, but your right on IE and chrome
Might be related to this : [asp .net core app doesn't set response cookie in IE and EDGE but works well in firefox and chrome](https://stackoverflow.com/questions/50692588/asp-net-core-app-doesnt-set-response-cookie-in-ie-and-edge-but-works-well-in-f l)

@mike25z2
Copy link

I can't get this to work with ANY browser, in debug, release, or even remote publish.

@bhrugen
Copy link
Owner

bhrugen commented Sep 20, 2018

Could you please email me your code at [email protected]

@mike25z2
Copy link

On its way from [email protected]

@AlexMasturkov
Copy link
Author

AlexMasturkov commented Sep 26, 2018 via email

@AlexMasturkov
Copy link
Author

I've fixed this issue by comment // app.UseCookiePolicy(); in Startup.cs
Now shopping cart works in IE and Chrome
I think it is better to configure 👍
_services.Configure(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a
given request.
options.CheckConsentNeeded = context => true;
options.MinimumSameSitePolicy = SameSiteMode.None;
});

@AlexMasturkov
Copy link
Author

I've checked Startup.cs Cookie Options and found that it works when we change
options.CheckConsentNeeded = context => false;
from true to false.
I don't know how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants