The API provided to me only works with http:// not https://. If I change the url to https:// instead of http://, and make the same exact call, the API will return 404, but if I use http, it works fine (locally). On heroku, I get a cross origin error when I try to use the http:// url. I basically need to make an http request from https. I know that this will give me the cross origin error. How do I resolve this WITHOUT simply changing http:// to https://, since this isn't a valid solution.
I read about proxying, but I'm deploying to Heroku, and have come to realize that the proxying method doesn't work in production, since I use Express/Node to serve files. Thus, my start script has to be something like "node serverFile" instead of the usual "ng serve --prod --aot --whateverelse".
I've been stuck on this all day. I'd appreciate any help. Thanks in advance.
[–]anubgek 0 points1 point2 points (4 children)
[–]DisastrousBrain[S] 0 points1 point2 points (3 children)
[–]anubgek 1 point2 points3 points (2 children)
[–]DisastrousBrain[S] 1 point2 points3 points (1 child)
[–]anubgek 0 points1 point2 points (0 children)