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

The releases endpoint is not accessible by external tools #5587

Closed
mattiaverga opened this issue Jan 19, 2024 · 0 comments · Fixed by #5588
Closed

The releases endpoint is not accessible by external tools #5587

mattiaverga opened this issue Jan 19, 2024 · 0 comments · Fixed by #5588
Labels
low-trouble medium-gain RFE Requests for Enhancement

Comments

@mattiaverga
Copy link
Contributor

The /releases/ endpoint uses a really restrictive CORS setting which prevents ajax calls to fetch the list of releases. This is done because the same endpoint accept both GET (for listing, using HTTP and JSON renderers) and POST (for add/edit releases). The latter should be restricted to requests originated from Bodhi server itself.

We can add a new endpoint reusing the same view method of the GET /releases/ (using decorators) and assign the more relaxed cors_origin_ro CORS to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low-trouble medium-gain RFE Requests for Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant