Heroku and Inertia links I deployed my laravel inertia app to Heroku and all my links are HTTP and not HTTPS causing this error.
This request has been blocked; the content must be served over HTTPS.
Does anyone know the solution? Thanks!
@nodemechanic Sounds like you’ve not set up your trusted proxies properly. You’ll need to edit your TrustProxies middleware to have the following:
<?php
namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware;
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
protected $proxies = '*';
protected $headers = Request::HEADER_X_FORWARDED_AWS_ELB;
}
Thanks @martinbean that fixed a majority of the problem! The only thing I am running into now is on the login form the post route is responding with a 419 unknown status.
Yeah, that seems to be it. Looks like I will need to get it from the meta tags and attach it to all inertia forms. Thanks again!
Please sign in or create an account to participate in this conversation.