inertia
inertia copied to clipboard
`router.visit` expects but doesn't list `application/json` in `Accept` header
Versions:
-
@inertiajs/core
version: 1.2.0 -
@inertiajs/vue2
version: #.#.# -
@inertiajs/vue3
version: #.#.# -
@inertiajs/react
version: 1.2.0 -
@inertiajs/svelte
version: #.#.#
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