inertia icon indicating copy to clipboard operation
inertia copied to clipboard

`router.visit` expects but doesn't list `application/json` in `Accept` header

Open ariel-codes opened this issue 7 months ago • 0 comments

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

ariel-codes avatar Jul 11 '24 00:07 ariel-codes