What is Proxy and why should they?

In Symphony 4 and 5 Larval appeared here such parameters. At Symphony they in Request, in Larval they go in Middleware
class TrustProxies extends Middleware
{
/**
 * The trusted proxies for this application.
*
 * @var array
*/
 protected $proxy;

/**
 * The current proxy header mappings.
*
 * @var array
*/
 protected $headers = [
 Request::HEADER_FORWARDED => 'FORWARDED',
 Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR',
 Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST',
 Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT',
 Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO',
];
}


What is it and why?
June 10th 19 at 16:24
1 answer
June 10th 19 at 16:26
Solution
https://github.com/fideloper/TrustedProxy - jaycee commented on June 10th 19 at 16:29
done , know how to Google. But I what for this link? But more about them in the dock larval written, but you're not a reader and a writer... - Penelope91 commented on June 10th 19 at 16:32
, https://laravel-news.com/trusted-proxy - jaycee commented on June 10th 19 at 16:35
, it is another thing. Wait 20 minutes, this guy himself will write the answer and mark it with solution (I have noticed that he isn't much wind here, a rating of 100% of the decisions) - elliott.Cartwrig commented on June 10th 19 at 16:38
and does not know, poor fellow, that the rating does not depend on the percent of solved questions :) - Austen.Thompson53 commented on June 10th 19 at 16:41
I do not care for the ranking, it is important to find answers to questions and solve problems.
I can remove your answers, however,
1 - they help others to find a solution
2 - if you forget how to solve the error, there is much to spy on - jaycee commented on June 10th 19 at 16:44
Well so I opened a question at random, really the first.

The question you're asking
JQuery scroll() and scrollTop() working?

You gave the right answer, but you dumped kulstori about css is that neither header nor the text of the question is not related, and noted as a solution.
I mean, Yes, you have not worked scrolling for css, but the issue because of this no lines.

And the correct answer is never stated.
And this is not an isolated case. - Austen.Thompson53 commented on June 10th 19 at 16:47
This is a joke? You question read?
1 - There's a code issue that brought the answer.
2 - my question was given a possible solution to problems that may have arisen at those 350+ luedi looking question.
3 - you are right, the answers are correct, if you exclude the fact that there is already in question there is a code in the response. If you bother what I do not chose the right answers, say so. I was approached solution to the situation, the answer of which is selected there. I don't care how many answers, can select all, right and wrong, however, if in my case they did not fit, why do I have to choose the right one? Logical?
4 - also, if you count the number of views of the questions which were asked me, more than 150 000. Of course it's not the million Stack is English, but Russian-speaking Internet audience is smaller. - jaycee commented on June 10th 19 at 16:50
again I'll try to explain in more detail.

Here you sit at the computer, write some code, and you can't do something, or something is broken. Are you looking for a solution to this problem and post a question on the toaster. People read your question and want to help you - give the answers. But they don't know what's actually happening, they only see the text that you wrote in the question title and the question. And so they read your question and gave the answer. And correct.
Look here:

1. https://jsfiddle.net/noam8g0L/
Page skrollitsya, but the engine did not work because it hangs on window, not on the body.
2. https://jsfiddle.net/noam8g0L/1/
Handler on window, but nothing happens until you squeezed the page height so a scrollbar.
3. https://jsfiddle.net/noam8g0L/2/
Everything works "as it should"

Mind you, all three examples in General, all css. Maybe your story is about a css solution for that bullshit, what really happened to your page, but it is not consistent to what you wrote in the question.

In the end, I have a question whose correct answer is not selected, a green check mark, you have set yourself just. - Austen.Thompson53 commented on June 10th 19 at 16:53
,
4 - also, if you count the number of views of the questions which were asked me, more than 150 000.
ohlol, leave at night something heavy on the F5 key, in the morning, tens of thousands hits run across. - Austen.Thompson53 commented on June 10th 19 at 16:56
All expressed? - jaycee commented on June 10th 19 at 16:59
if still not clear, you may proceed. - Austen.Thompson53 commented on June 10th 19 at 17:02
I noted their decisions, although I note that I they didn't fit, but might suit someone. Again, I can choose answers all of the answers, the main thing is the solution of the problem. - jaycee commented on June 10th 19 at 17:05

Find more questions by tags SymfonyLaravel