Closed bradleyden closed 7 years ago
It might be more useful to deploy your front end and test the connection between the two deployed apps, instead of spending time troubleshooting the connection between localhost
and Heroku.
Yes, I just realized that was the problem after looking at Parth's issue from before. I will do it that way and open a new issue if I still have issues. Thank you!
I had everything working how I wanted it between the two localhost links, so I pushed all my changes to my heroku app and updated the API origin url to test it.
Heroku url: https://guarded-fjord-43518.herokuapp.com/
When I try signing in from the localhost client, I get this error: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:7165' is therefore not allowed access. The response had HTTP status code 500.
I looked up the error and it seems to have to do with the fact that the request is coming from a different domain from the server, so should I add an Access Control Header to my API or did I do something else wrong somewhere?
Thanks!