Tag Archives: CORS

Minor changes in TibiaData API

There have been a minor change to the whole TibiaData API regarding CORS (Cross-Origin Resource Sharing).

This means, that you now can run requests with for example ajax towards the API right from your website.

The allowed HTTP methods are GET and OPTIONS.

Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell browsers to give a web application running at one origin, access to selected resources from a different origin. A web application executes a cross-origin HTTP request when it requests a resource that has a different origin (domain, protocol, or port) from its own.

Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

Credits to a lot of you, who have requested this feature in the API.
Keep the reports coming and feel free to suggest even more new features!

Regards,
Tobias