#Spigot Web API
1 messages ยท Page 1 of 1 (latest)
I found this a while back when looking for a way to check weather or not a plugin needed an update.
https://github.com/SpigotMC/XenforoResourceManagerAPI
Its contributors are md-5 so Im assuming it has to be a legit source
I remeber how I first found it was from a post explaining how to check for updates on the spigot forums, however, Im not sure what the link is to that original post
Also I put it inside of a thread to not spam the people who now need help
I'm not saying that it's not a legit source, but I'm saying that it's likely not meant to be queried on the front end. If you get any CORS error messages that means that the API's response didn't have the domain you've sent the request from in it's CORS allow list. A backend API can just ignore this, browsers are forced to - for security reasons - drop the response.
So if you want something that'll definitely work, just use spiget. It'll easily provide you the information you need. It may take a bit to synchronize with the real site though, that's something to keep in mind.
Okay cool thank you ๐
Otherwise, you could provide your own relay on the server you're hosting the website on. Let the server make the request, ignore the CORS header and then relay the response back to the client. You'd need to do that if you need realtime data.
alright cool thank you for the information. It was super helpful and I learned alot ๐