#Getting CORS on only the `/api/board/seek` endpoint
39 messages · Page 1 of 1 (latest)
there's a typo in authorzation
Not really.. The problem is the missing i. Using a z is correct.
oh waht
I missed an i-?
OH
I DID
no
wait no
im looking the wrong code
Thank you so much, idk how I didnt notice that 😭
uhm, Do you have any idea why im getting "Invalid time control"
Im passing it in this code
await fetch("https://lichess.org/api/board/seek", {
method: 'post',
headers: { Authorization: "Bearer " + lichessAuth },
body: new URLSearchParams({
rated: rated,
time: currentTimeControl.time,
increment: currentTimeControl.increment
})
}).then(i => i.json().then(console.log));
```Ive tried `rated` being true and false, and time/increment being 1/0, 1/3, 3/0 and 5/3
I think the time is in seconds. Check the API docs.
Also, not sure you can seek bullet games. Should be listed in the docs somewhere as well.
Well, check the docs, it says somewhere which ones are allowed
You can't
oh
bruh
thats kinda dumb
also they should change this then
cuz that leads me to believe I can do any number from 0 - 180
Well, it's not technically wrong, you probably can do something like 0/180 or 10/0.
Though I guess it would make sense to mention the restrictions somewhere there
Mhm I dont see where it says abt the restrictions
Imo they should allow you to seek bullet games
It's definitely mentioned somewhere in the docs. Maybe at the start of the board API section. Iirc you can play bullet via direct challenges. Iirc it's due to cheating but don't remember exactly.