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

Please enable CORS on the API #59

Closed
bruffridge opened this issue Jun 13, 2024 · 3 comments
Closed

Please enable CORS on the API #59

bruffridge opened this issue Jun 13, 2024 · 3 comments

Comments

@bruffridge
Copy link

Describe the bug
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to a webpage that uses javascript to send a GET request to the PQAI API endpoint in Google Chrome
  2. See the CORS error in the Chrome Developer Console

Expected behavior
API will respond with JSON instead of throwing a CORS error.

Desktop (please complete the following information):

  • OS: Mac OS
  • Browser Chrome
  • Version 125
@mahesh-maan
Copy link
Contributor

@bruffridge Thank you for raising this issue. I have enabled CORS on the API. Could you please try making the request again and confirm that it's working?

@bruffridge
Copy link
Author

It is working now, thank you!

@mahesh-maan
Copy link
Contributor

Thanks for confirming! Closing the issue.

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

No branches or pull requests

2 participants