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

SSL issue "when Force SSL for all site pages" is disabled #2829

Closed
cesaremarasco opened this issue Jan 16, 2018 · 5 comments
Closed

SSL issue "when Force SSL for all site pages" is disabled #2829

cesaremarasco opened this issue Jan 16, 2018 · 5 comments

Comments

@cesaremarasco
Copy link

cesaremarasco commented Jan 16, 2018

Hi,
I published locally nopcommerce and i deployed it on IIS (ever locally) with self signed certificate and fake domain name mapped on the host file to 127.0.0.1. After i configured nop with
Force SSL for all site pages = false.

In this situation after login and after redirection in home page, isn't diplayed "Administration" link on top of page anymore and seams that i not logged in, but i was.

Please can you check this scenario.

@AndreiMaz
Copy link
Member

Please see #2834

@guy-shahine
Copy link

@AndreiMaz I'm probably missing something. Your referred work item states that NopCommerce 4.0 forces SSL everywhere but I'm not seeing this behavior. I'm actually facing an opposite behavior where my site https://soutoujewelry.com redirects to http://soutoujewelry.com and after a user logs in, it looks like they haven't logged in. If I click on my account then it redirects to https site and all login attributes are reflected.

I thought it was a caching issue but I tried different browsers and it still redirects home page from HTTPS to HTTP. I feel like it's a misconfiguration that I can't figure out. I changed the store default URL to HTTPS so I started getting too many redirects. Before I write my own wildcard redirect rule, I was wondering if there is a setting that I need to flip.

Thanks

@AndreiMaz
Copy link
Member

@chlela you have to enable "Force SSL for all site pages" for the entire site now

@guy-shahine
Copy link

I have enabled it in Admin->Configuration->General Settings and I made sure the key in all settings “securitysettings.forcesslforallpages” is set to True. Still the same behavior. I restarted my application in Azure and I’m suspecting it’s a caching issue

@guy-shahine
Copy link

It was indeed a caching issue. After clearing the cache and restarting the application inside NopCommerce, SSL is enforced on all pages and login issue is fixed. Thanks

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

3 participants