how to modify softether vpn server http api CORS rule ?

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
mllife
Posts: 1
Joined: Fri Mar 17, 2023 7:22 am

how to modify softether vpn server http api CORS rule ?

Post by mllife » 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!

solo
Posts: 1614
Joined: Sun Feb 14, 2021 10:31 am

Re: how to modify softether vpn server http api CORS rule ?

Post by solo » Sun Dec 01, 2024 10:44 pm


Post Reply