#
Cors
The HawAPI project supports cross-origin HTTP requests which is commonly referred as CORS. This means that you can call API resources from any browser.
CORS is a proposed standard for allowing your web browser and a web server to negotiate and allow requests to be made across domain contexts. CORS is currently supported in modern Chrome, Firefox, Safari, and Internet Explorer (10+) web browsers.
You don’t need to do anything special to use CORS with JavaScript in a modern browser. Your web browser and our servers will automatically negotiate the cross-origin request. For example, to make a GET request, you’d make your request just like you were performing it within the context of your own domain.
#
Example
Fetching all actors
fetch("https://hawapi.theproject.id/api/v1/actors")
.then((response) => response.json())
.then((data) => console.log(data));
#
Allowed Methods
Only GET method is allowed for all tiers (with limitations).