Am i allowed to host an API?

Am i allowed to host a API?

it is not complex it is a JS file with exports

if yes:
will i have cors errors
or
do i need a fix
if no:
what other free service can i use

and yes there will be a site hosted with it to test the api

Probably would not work

6 Likes

It depends on what the API does and how it is used.

The rule of thumb is that you can only use our hosting to host a website.

So if you create your website as a Single Page Application, with the Javascript frontend and PHP backend both hosted on the same domain with us, it will work.

If the frontend is hosted elsewhere, or is not running as Javascript inside the browser, it will not work.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.