Skip to content

Commit

Permalink
Merge pull request #288 from nanasess/fix-https
Browse files Browse the repository at this point in the history
$_SERVER['HTTP_X_FORWARDED_PROTO']) が設定されている環境で、 不正な遷移になっていたのを修正
  • Loading branch information
Chihiro Adachi authored Jul 30, 2019
2 parents eedab98 + 6a913d4 commit 8e82d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/app_initial.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

// Flexible SSLへの対応
if( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ){
$_SERVER['HTTPS'] = 1;
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
}

Expand Down

0 comments on commit 8e82d79

Please sign in to comment.