Can't connect to swagger UI

Hello,

I’m new to the froum.

I’m following the tutorial on ARI and trying to access ari ressources through https://ari.asterisk.org/ but I get strong textCan’t read from server. It may not have the appropriate access-control-origin settings.’ strong text

Asterisk server is on a cloud machine (VPS).

HTTP requests on the asterisk server (public ip) from my workstation work great (http.conf and ari.conf are correctly configured) but i can’t get swagger ui to work correctly through https://ari.asterisk.org/ using the public ip of the remote machine (VPS) where asterisk is running.

Thanks in advance fo any help

Go through your assumptions about why it should work and verify each one individually, such as:

  1. Is there a firewall in place preventing a connection?
  2. Is the Asterisk HTTP server listening on 0.0.0.0 so it would accept it?
  3. If you directly access the HTTP server from the browser, not through ari.asterisk.org does it work?
1 Like

Thanks for your help.

My config was good. I did some inspection using browser developper tool and figured out i needed to acess ari.asterisk.org through http and not through https

Now everything working fine.