The intention of public servers is to provide an easy way to embed 
SageMathCells into web-pages for interactive purposes.

There is a potential that some other experimental ways of using the servers 
are still working, but no guarantee that it will be the case and no 
intentions to expand it.

If you want, you can run your own server and configure it with whatever 
restrictions you want. Added benefit - you decide which packages to install.

Best regards,
Andrey

On Thursday, 15 January 2026 at 13:21:12 UTC-7 [email protected] wrote:

> This is a follow up to my question about /service that was forwarded to 
> this group from sage-support.
>
> Is the websocket service also restricted? I've been able to successfully 
> connect, send a simple code request, and receive a calculation result in 
> the following two ways:
>
> 1) Using the python script
>
> https://github.com/sagemath/sagecell/blob/master/contrib/sagecell-client/sagecell-client.py
>
> 2) Using a command-line websocket client
> https://github.com/vi/websocat/
>
> But when I try using some basic JS, I get a 403 response.
>
> // JS code
> const response = await fetch('https://sagecell.sagemath.org/kernel', {
>   method: 'POST',
>   body: '{"accepted_tos": "true:}',
>   headers: { 'Content-Type': 'application/json' }
> });
> const data = await response.json();
> const full_url = `${data.ws_url}kernel/${data.id}/channels`;
> const socket = new WebSocket(full_url);
> // ^^^^ this line fails with 403 response from server
>
> Any guidance would be appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/sage-cell/4630dca7-ecf8-413b-8dae-a3bfc2f4aac2n%40googlegroups.com.

Reply via email to