Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add CORS Support to the Signalling Server API #387

Open
1 of 6 tasks
Sohail05 opened this issue Dec 31, 2024 · 0 comments
Open
1 of 6 tasks

Feature Request: Add CORS Support to the Signalling Server API #387

Sohail05 opened this issue Dec 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Sohail05
Copy link

Component your feature request relates to:

  • Signalling server
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • SFU
  • This repo

Problem your feature solves? Please describe.

I have enabled the API on the Signalling Server.
I am using a custom frontend hosted on a different domain and would like to retrieve information using the built-in API.

However, this currently does not work in the browser due to CORS restrictions. The browser blocks the requests, making it impossible to fetch data from the Signalling Server in this setup.


Describe the solution you'd like.

I propose adding parameters to the config.json file to enable and configure CORS on the API.

For example:

{
  "cors": {
    "enabled": true,
    "allowed_origins": ["http://example.com"],
    "allowed_methods": ["GET", "POST", "OPTIONS"],
    "allowed_headers": ["Content-Type", "Authorization"]
  }
}
@Sohail05 Sohail05 added the enhancement New feature or request label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant