Skip to content

Cross-Origin-Request blocked on Vite #54291

@NickG92

Description

@NickG92

Laravel Version

11.39.0

PHP Version

8.4.3

Database Driver & Version

No response

Description

I just did a fresh install of a new project and this gives cross origin request blocked the same origin policy disallows reading the remote resource at (http://[::1]:5173/@vite/client) CORS-header ‘Access-Control-Allow-Origin’ is missing) in console. Browser is Firefox but confirmed this happens in Safari aswel.
CSS and JS changes are not reflected.

I had this earlier today aswel on an existing project after doing a composer update (different machine). Thought this was an issue in my code somewhere but it happens on a fresh install on a different PC aswel.

Steps To Reproduce

  • laravel new
  • Select Jetstream
  • Select Pest
  • Use default options for other questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions