how to modify softether vpn server http api CORS rule ?
Posted: Sun Dec 01, 2024 8:59 pm
how to modify softether vpn server http api CORS rule ?
I called the softether vpn server aip through javascript, but got an error:
Access to fetch at ' https://xxxxxxxxx:5555/api/ ' from origin ' http://xxxxxxxxxx ' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
I want to use javascript to call the softether vpn server api to get the number of logged-in users on the hub and the IP address from which the logged-in users accessed the softehter vpn server.
Or is there any other better way to get the server information?
thanks!
I called the softether vpn server aip through javascript, but got an error:
Access to fetch at ' https://xxxxxxxxx:5555/api/ ' from origin ' http://xxxxxxxxxx ' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
I want to use javascript to call the softether vpn server api to get the number of logged-in users on the hub and the IP address from which the logged-in users accessed the softehter vpn server.
Or is there any other better way to get the server information?
thanks!