I set Secure Base URL to https://magento22.local , did setup:upgrade
But now it tries to load all static content through http and chrome gives error "mixed content", so no styles or script are loaded.
I tried clearing everything – cache, static files folder, reloading server, enabling production mode – nothing helps.
What's the problem? Why Magento doesn't use HTTPS URLs?
"Use Secure URLs on Storefront" setting doesn't change anything
Best Answer
Did you install ssl for localhost server?
Try to add it:
Modify section:
to this
After that, run command