GraniteHouse icon indicating copy to clipboard operation
GraniteHouse copied to clipboard

Problem add item in bag

Open AlexMasturkov opened this issue 6 years ago • 7 comments

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"

AlexMasturkov avatar Sep 02 '18 20:09 AlexMasturkov

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)

PGTBoos avatar Sep 10 '18 20:09 PGTBoos

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

mike25z2 avatar Sep 20 '18 00:09 mike25z2

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

bhrugen avatar Sep 20 '18 00:09 bhrugen

On its way from [email protected]

mike25z2 avatar Sep 20 '18 00:09 mike25z2

Hi Bhrugen Patel, There is a link:GraniteHouse.zip

| | | | GraniteHouse.zip

|

|

|

Regards,Alexey

On Wednesday, September 19, 2018, 8:14:50 p.m. EDT, Bhrugen Patel <[email protected]> wrote:  

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

AlexMasturkov avatar Sep 26 '18 22:09 AlexMasturkov

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<CookiePolicyOptions>(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 avatar Oct 29 '18 21:10 AlexMasturkov

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.

AlexMasturkov avatar Oct 29 '18 21:10 AlexMasturkov