inertia
inertia copied to clipboard
`router.visit` expects but doesn't list `application/json` in `Accept` header
Versions:
@inertiajs/coreversion: 1.2.0@inertiajs/vue2version: #.#.#@inertiajs/vue3version: #.#.#@inertiajs/reactversion: 1.2.0@inertiajs/svelteversion: #.#.#
Describe the problem:
packages/core/src/router.ts:354 sets the Accept header to something else than application/json even though that's exactly what it expects. Is this intentional?
Steps to reproduce:
- Navigate using the router