Skip to content

Prefligth Options on API return 404 error #8580

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

Closed
2 of 7 tasks
scandinave opened this issue Oct 18, 2019 · 2 comments
Closed
2 of 7 tasks

Prefligth Options on API return 404 error #8580

scandinave opened this issue Oct 18, 2019 · 2 comments

Comments

@scandinave
Copy link

scandinave commented Oct 18, 2019

  • Gitea version (or commit ref): 1.9.4 and 1.11.0+dev-41-g945f12126
  • Git version: 2.20.1
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Hi,
I still have the same problem than in the #5724 with the latest gitea .

I make a request to http://localhost:3000/api/v1/user?token=api_key

Host: localhost:3000
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0
Accept: /
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Access-Control-Request-Method: GET
Access-Control-Request-Headers: authorization
Referer: http://localhost:4200/
Origin: http://localhost:4200
Connection: keep-alive

but i get a 404 error. It seem the API does not support option preflight or i make something wrong

@stale
Copy link

stale bot commented Dec 17, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Dec 17, 2019
@stale
Copy link

stale bot commented Dec 31, 2019

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale stale bot closed this as completed Dec 31, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant