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

error: cors issue when using post api endpoints #289

Closed
vince-fugnitto opened this issue Apr 26, 2021 · 0 comments · Fixed by #292
Closed

error: cors issue when using post api endpoints #289

vince-fugnitto opened this issue Apr 26, 2021 · 0 comments · Fixed by #292

Comments

@vince-fugnitto
Copy link
Member

Description

When using the post methods (ex: queryUsingPost) there are cors issues regarding the response:

Access to fetch at 'https://open-vsx.org/api/-/query' from origin 'http://localhost:3000' has been blocked by CORS policy:
Response to preflight request doesn't pass access control check: 
No 'Access-Control-Allow-Origin' header is present on the requested resource.
If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I was able to reproduce the issue both in a Theia-based application and Gitpod directly.

Theia:

image

Gitpod:

image

image

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 a pull request may close this issue.

1 participant