Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OrlandisCS opened this issue Jul 15, 2024 · 1 comment
Labels
react Related to the react adapter

Comments

@OrlandisCS
Copy link

OrlandisCS commented Jul 15, 2024

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 OrlandisCS added the react Related to the react adapter label Jul 15, 2024
@PedroAugustoRamalhoDuarte

Hello @OrlandisCS, probably is a problem with your backend adapter, can you share more infos please? We have a discord to help in these cases: https://discord.gg/qzRTH4vU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
react Related to the react adapter
Projects
None yet
Development

No branches or pull requests

2 participants