Skip to content
Source
Sign inSign up
TanStack/table

Unable to view examples in Codesandbox without forking #6175

Closedtechnicallynick(GitHub profile, opens in a new tab) opened this issue 2 comments

TanStack Table version

8.21.3

Framework/Library version

React 18.3.1

Describe the bug and the steps to reproduce it

A recent update to Vite blocks the use of proxies without specifying allowed hosts. When attempting to view any tanstack table example in Codesandbox, you receive an error that looks something like this:

Blocked request. This host ("1nnk56-5173.csb.app") is not allowed. To allow this host, add "1nnk56-5173.csb.app" to server.allowedHosts in vite.config.js.

Adding the server.allowedHosts key to the vite.config.js file resolves the issue. However, forking a repo just to see/interact with an example seems like a lot.

https://codesandbox.io/p/devbox/github/tanstack/table/tree/main/examples/react/virtualized-infinite-scrolling?embed=1&theme=dark

Screenshots or Videos (Optional)

Image

Do you intend to try to help solve this bug with your own PR?

PR added -- https://github.com/TanStack/table/pull/6176

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
  1. Hi! I’d like to work on this issue. Could you please assign it to me? I’ll make sure to follow the contribution guidelines. Thanks!

  2. I added .devcontainers recently to fix this in v9 for correct node versions

  3. KevinVandy closed this

Sign in to join this conversation.