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

Fix OPTIONS request to REST API methods #4402

Merged
merged 1 commit into from
Mar 1, 2022
Merged

Conversation

nmanovic
Copy link
Contributor

@nmanovic nmanovic commented Mar 1, 2022

Motivation and context

Now some requests with OPTIONS method to a REST API endpoint lead to an exception. For example, OPTIONS https://cvat.org/api/organizations -> 500 (Server Error). Others to permissions denied.

How has this been tested?

Added a test into tests/rest_api

Checklist

  • I submit my changes into the develop branch
  • I have added tests to cover my changes

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2022 Intel Corporation
#
# SPDX-License-Identifier: MIT

@nmanovic nmanovic requested a review from azhavoro as a code owner March 1, 2022 08:37
@nmanovic nmanovic merged commit cc98ff0 into develop Mar 1, 2022
@nmanovic nmanovic deleted the nm/fix_options_request branch March 1, 2022 14:01
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant