TanStackT
TanStack10mo ago
12 replies
dead-brown

Sending large amounts of data from client to server results in CORS error.

I was playing around with an xgboost package - and i tried to send a large array to a serverFn with useMutation in Start - and it errors out every time. It says CORS error but I am sure that is a red-hearing.

When I reduce the size of the array it works fine.

Wrapping the serverFn with userServerFn does not help either. I was originally using
useQuery
but had same results.

Any idea what to do or try?
Was this page helpful?