API 2.4.1
v2.4.1
Production hotfix. Websites making browser-based API requests, such as TibiaWiki using $.ajax, are no longer blocked by CORS restrictions.
What's Included
- CORS support for all origins, as in v1. Every response (200, 304, 404, 429, 503, etc.) includes:
Access-Control-Allow-Origin: *;Access-Control-Expose-HeaderswithETag,RateLimit-*,Retry-After, andX-API-Version.
- Preflight: An
OPTIONSrequest withAccess-Control-Request-Methodreturns 204, with:Allow-Methods: GET, HEAD, POST;Allow-Headers: Authorization, Content-Type, If-None-Match;Max-Age: 86400.
Preflight requests do not count toward the rate limit quota.
- **No
Access-Control-Allow-Credentials:** The API does not use cookies. - Security: Security fix for parsing HTML from tibia.com.
- Version 2.4.1: Updated in
X-API-Version,info.versionin both OpenAPI specifications, and the v2 API contract.
Behavior Changes for API Consumers
No breaking changes. Only additional headers and preflight support have been introduced.
Known Limitation
When the API is down, the 502 response is generated directly by Nginx and does not include Access-Control-Allow-Origin. Browsers report this as a CORS error.