bflow's avatar
Level 1

Nova 3 to 4 Upgrade - All Inertia requests must receive a valid Inertia response, however a plain JSON response was received

Hi there!

I just upgraded Nova 3 to 4 (Laravel 8.x, PHP 8.2, Frontend is a Vue 2 SPA). all worked so far and I can open the Nova backend. However when I click on any link in nova, I get the error: "All Inertia requests must receive a valid Inertia response, however a plain JSON response was received." I tried adding the following code to /public/.htaccess file but did not help <IfModule mod_headers.c> Header append X-Inertia: true </IfModule>

Any ideas what I could do else?

0 likes
1 reply
jamesregis's avatar

I think you can try clearing your Laravel config cache. Run the following command:

bash php artisan config:clear

Please or to participate in this conversation.