I have made a website with Laravel and Inertia Js, but when it is in production it doesn't render the components when browsing, only if it is entered directly from the url.
When navigating using the inertia-link tag the site returns:
All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
This only happens in Firefox