Javascript

is there JS on the Free plan and if there is how do i active it?

JS is running from browser.
Just make sure you have valid js on your host.

6 Likes

Javascript in the browser can be hosted basically anywhere. It’s run in the browser, so doesn’t really have any dependency on the host.

Server side Javascript (commonly referred to as Node.js) is also a thing, but not something that we offer on free hosting. On free hosting, we only support the PHP programming language.

5 Likes

Hmm, I had JS running elsewhere and faced CORS restriction. Maybe this is the exception?

1 Like

He meant that javascript on browser cannot run by the server but the browser. So the server cannot restrict the .js code from execution but… By CORS restriction if you are sending a request to the server itself, It is in server’s side to whatever block request-callback from browsers/devices (regardless whatever it is javascript, python, etc) or not.

5 Likes

You can use Javascript on a website hosted with us. But you can’t use Javascript hosted with us on another website due to the browser validation system / CORS restrictions. And you can’t use Javascript hosted elsewhere on a website here if that other website doesn’t allow CORS.

4 Likes

Thanks for the clarification!

1 Like

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