-
Notifications
You must be signed in to change notification settings - Fork 5
Control Panel not working correctly on HTTPS #1306
Comments
Did you change the APP_URL in the .env file? Make sure this references an https url |
I did not know existed and can not find anything that mention it in the documentation. Anyway I tried it in development and does not work, doesn't change anything. |
Ah yes that's because I put that setting in an environment file, check if settings --> system -> locales has https in the url |
Ok I got it. I just did it too, but nothing changes. And I think it is right that the locales settings does not affect the CP url. |
Ok i figured it out. $_SERVER['HTTPS'] is not set in some environments, you can read about it here and here. I tryed to fix the file statamic/core/API/URL.php at line 280, but it wasn't enough so i prefered this htaccess work around:
I still can't fix it in valet share / ngrock environment 'cause it doesn't support htaccess, I could change some core file, probably in bootstrap or similiar but I don't need it so much in development env. Cheers |
In the next release, you can add |
Closing this one ahead of the release though because it's a duplicate of #1140 :) |
Expected behaviour
After the go live i switched all site to https. It should work in front end and cp.
Actual behaviour
Front end works, cp can't save pages.
Steps to reproduce
Use https in cp
Server configuration
Operating system:
Amazon linux
Web server:
Apache 2.4
PHP version:
7.0.14
Statamic version:
2.5.4
Updated from an older Statamic or fresh install:
from 2.1
Logs
Console show something like:
This should be very ease to fix, please let me know.
The text was updated successfully, but these errors were encountered: