UMANTHIR

Release Notes

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-Headers with ETag, RateLimit-*, Retry-After, and X-API-Version.
  • Preflight: An OPTIONS request with Access-Control-Request-Method returns 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.version in 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.

See the changelog of this version

Cookies

Session, language and theme use necessary cookies and stay on. Usage tagging, such as visit analytics or advertising, starts only if you allow it.

Manage cookies

Session, language and theme use necessary cookies and stay on. Usage tagging, such as visit analytics or advertising, starts only if you allow it.