Jump to content
Not connected, Your IP: 3.135.194.138
Sign in to follow this  
benfitita

API: Allow cross-origin requests to "status" service

Recommended Posts

"status" API service is publicly available, no API key is needed. For example:

curl https://airvpn.org/api/?format=json&service=status

It'd be great if a permissive CORS header would be included in a response allowing any origin to access "status" API service. For example:

Access-Control-Allow-Origin: *

Further down the road, it'd useful to be able to say which origins are allowed to send requests with my API key, so it could be used for more advanced services cross-origin.

 

Background info

I'm working on my own config generator and I'd like to run it in a web browser.

 

Workaround

I can use https://cors-anywhere.herokuapp.com/ and such for the time being.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...