-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
… Host header is used
- Loading branch information
Showing
3 changed files
with
79 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use the following scheme in the project
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lesha724 please take a look, maybe we should rollback this in total?
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Myakun, Could you give an example of what's in the request header?
@bizley, please look description of #19290, we can rollback, but this issue will not fixed
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lesha724
json_encode(getallheaders()) return result example
{"Authorization":"Bearer apikey","Content-Type":"application\/json","User-Agent":"GuzzleHttp\/7","Content-Length":"44","Connection":"close","Host":"appdev.my.secret.domain","X-Forwarded-For":"my-secret-ip","X-Real-Ip":"same-secret-ip"}
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Myakun , and what is in $_SERVER? Maybe SERVER_PORT isn`t empty?
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lesha724 you are right.
[SERVER_PORT] => 8080
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bizley, What you think? I think it is correct and we shouldn't rollback this changes.
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it, let's keep it. Thanks.
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Myakun, try use X-Forwarded-Host, this must help you
8046d3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx, @lesha724
My system administrator has already found a solution to the problem. The most important thing for me was to report a possible problem to yii team.