Skip to content

TypeError: can't access property "x-inertia", this.response.headers is undefined #2434

@BadreddineZatout

Description

@BadreddineZatout

@inertiajs/react Version

2.0.14

Backend stack (optional)

Laravel 11
PHP 8.3

Describe the problem

when I use the Link or router.visit, the request return 200 with Inertia response format, and also the x-inertia in the response header, but I get this error on the TypeError: can't access property "x-inertia", this.response.headers is undefined

Steps to reproduce

either implement a simple page with Link component or some logic to change the page using the router.visit("url")

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more info/workNeeds more info from the author or additional work to get mergedreactRelated to the react adapter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions