Skip to content

Using Log Viewer with AWS Load Balancer #380

Answered by gssj85
gssj85 asked this question in Q&A
Discussion options

You must be logged in to vote

API was generating HTTP links instead of HTTPS for the assets which triggered the error, I'm not too much sure about the flow of the requests but I believe some forward header was not being readed because the application didn't consider it safe so it used it's "internal" http address to generate the assets instead of https.

This is not a Log Viewer issue but the way our infrastructure was setup at AWS. Leaving solution if anyone else need.

The solution was allowing all proxies in the TrustProxies middleware:

/**
 * The trusted proxies for this application.
 *
 * @var string|array
 */
protected $proxies = '*';

https://laravel.com/docs/9.x/requests#configuring-trusted-proxies

Whoever is thi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gssj85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants