Skip to content

Blocked request. This host ("app") is not allowed. #19425

Closed

Description

@MariuzM

Describe the bug

I updated Vite to latest now I'm starting to have this, then i downgraded but still same thing, what is happening?

Blocked request. This host ("app") is not allowed.
To allow this host, add "app" to preview.allowedHosts in vite.config.js.

I use Railway as hosting and i have no idea how to fix this?

Reproduction

https://github.com/MariuzM/frameworks/tree/main/react-tsr

Steps to reproduce

No response

System Info

System:
    OS: macOS 14.7.2
    CPU: (10) arm64 Apple M1 Max
    Memory: 24.44 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.17.0 - ~/dev/node-v20.17.0/bin/node
    Yarn: 1.22.22 - ~/dev/node-v20.17.0/bin/yarn
    npm: 10.8.2 - ~/dev/node-v20.17.0/bin/npm
    pnpm: 9.12.2 - ~/Library/pnpm/pnpm
    bun: 1.2.2 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 133.1.75.175
    Chrome: 130.0.6723.70
    Safari: 18.2

Used Package Manager

bun

Logs

No response

Validations

Activity

  1. locked and limited conversation to collaborators on Feb 14, 2025
  2. converted this issue into a discussion #19426 on Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions