Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13974311
D8244.id19614.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
477 B
Referenced Files
None
Subscribers
None
D8244.id19614.diff
View Options
diff --git a/src/aphront/AphrontRequest.php b/src/aphront/AphrontRequest.php
--- a/src/aphront/AphrontRequest.php
+++ b/src/aphront/AphrontRequest.php
@@ -305,6 +305,11 @@
* @task cookie
*/
private function getCookieDomainURI() {
+ if (PhabricatorEnv::getEnvConfig('security.require-https') &&
+ !$this->isHTTPS()) {
+ return null;
+ }
+
$host = $this->getHost();
// If there's no base domain configured, just use whatever the request
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 19 2024, 5:04 AM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6730450
Default Alt Text
D8244.id19614.diff (477 B)
Attached To
Mode
D8244: Fix issue where accessing HTTP domain would override HTTPS cookie
Attached
Detach File
Event Timeline
Log In to Comment