Replies: 1 comment 6 replies
-
@PollieDev How do you submit the login (VueJS?) and handle the controller authentication? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
One of my customers is experiencing the issue where the response shows the modal with "All Inertia requests must receive a valid Inertia response, however a plain JSON response was received."
I can confirm that the request normally is a valid Inertia request. The user is able to load in the login page. But when successfully authenticated they receive that modal. I notice that the JSON is what Inertia send to the front-end. It includes the component name (which would be the correct one after being authenticated) and it contains all data as expected.
I myself am unable to reproduce the issue. They are using Edge in incognito, again I was unable to reproduce it in Edge incognito.
I have extensively looked through logs and our monitoring. Everything is pointing to it being a valid Inertia request. However they still run into that issue.
I wanted to check in whether any of you experienced the same or had any ideas what it could be.
The customer is part of an enterprise company. So one assumption I have is that their enterprise network is blocking unknown headers, therefor blocking X-Inertia. Which is, to my knowledge, a requirement to be a valid Inertia request. If that's the case, then this flow would make sense, right? - Up to them to then whitelist this header.
I am currently in contact with said customer to check on the network situation. But didn't want to waste too much time so wanted to check in with all of you if anyone else had another idea or another potential cause in mind.
Thanks in advance,
Pollie
Beta Was this translation helpful? Give feedback.
All reactions