any idea why a request would return a CORS error when I sent a lot of IDs to a query, but works fine with just a couple?
g
garyaustin
11/05/2021, 1:34 PM
Are you running a select which uses a GET request? Not sure about causing CORS error, but you might be exceeding URL length limit. I have found CORS errors can come back for a variety of reasons having nothing to do with actual CORS error (not just on Supabase).
l
Lothar
11/05/2021, 7:59 PM
yes, it is using a get request, and probably this is the reason as I am seeing the URL gets huge. Is it possible to send the request as post instead???
g
garyaustin
11/05/2021, 8:01 PM
Not that I know of. Use an RPC function as that uses POST or split up are probably only two options. Someone else ran into this a few days ago and went with RPC.
l
Lothar
11/05/2021, 9:36 PM
Do you happen to know URL limit lenght? I could split up if I knew the limit... I have no experience with RPC functions, but I'll see if I can check them out... thanks a lot btw!
g
garyaustin
11/05/2021, 9:38 PM
I'm not sure it is absolutely set in stone, but about 2000