inertia icon indicating copy to clipboard operation
inertia copied to clipboard

All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.

Open OrlandisCS opened this issue 1 year ago • 1 comments

Version:

  • @inertiajs/react version: #.#.#

Describe the problem:

In firefox I am receiving the response of All Inertia requests must receive a valid Inertia response, however a plain JSON response was received. This only happens in Firefox since after checking in other browsers it does not happen, also try to configure .htaccess exposing the headers Header always set Access-Control-Expose-Headers "X-Inertia" Without any results, I have heard that the following works for nginx: add_header 'Access-Control-Expose-Headers' 'X-Inertia'; but in my case there was no luck

Steps to reproduce:

You just need to send an inertia js render with a lot of data

image

OrlandisCS avatar Jul 15 '24 08:07 OrlandisCS