API 2.4.1
- Added
- Changed
- Fixed
- Security
v2.4.1
Added
- CORS support for all origins, as in v1: Every response includes
Access-Control-Allow-Origin: *andAccess-Control-Expose-HeaderswithETag,RateLimit-*,Retry-After, andX-API-Version. - Preflight:
OPTIONSrequests withAccess-Control-Request-Methodreturn 204 withAllow-Methods: GET, HEAD, POST,Allow-Headers: Authorization, Content-Type, If-None-Match, andMax-Age: 86400.
Changed
- Updated the version to 2.4.1 in
X-API-Version,info.versionin both OpenAPI specifications, and the v2 API contract. - Preflight requests no longer count toward the rate limit quota.
Fixed
- Websites making browser-based API requests (such as TibiaWiki using
$.ajax) are no longer blocked by CORS restrictions.
Security
- Security fixes for parsing HTML from tibia.com.
- No
Access-Control-Allow-Credentialsheader, as the API does not use cookies.