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

CORS Error #10

Open
amimbs opened this issue Mar 4, 2022 · 2 comments
Open

CORS Error #10

amimbs opened this issue Mar 4, 2022 · 2 comments

Comments

@amimbs
Copy link

amimbs commented Mar 4, 2022

@dukengn We're trying to use your API using strictly frontend however we're receiving the following error
image
We noticed there's a potential fix for cors however it doesn't seem to have been deployed?

Thanks!

@sudomateo
Copy link

sudomateo commented Apr 13, 2022

I ran the Python app locally and the Access-Control-Allow-Origin was successfully set for the /api* paths. However, it seems that the Heroku deployment at https://dog-facts-api.herokuapp.com is not configured to handle CORS correctly. Almost as if the Heroku app is not correctly forwarding/processing CORS headers.

@DucNgn
Copy link
Owner

DucNgn commented Apr 22, 2022

Hi, sorry for the issue.

I've finished migrating the project to a new repo: Dog-Facts-API-v2. the new API endpoint is at: https://www.dogfactsapi.ducnguyen.dev which is hosted on my own VM.

The CORS issue should be fixed now and the API should be more stable (no sleeping dynos)

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

3 participants