I'm trying to use the DEV.to API via a request from my personal webpage using JavaScript, and the browser is constantly blocking the request. I believe the problem is that with the CORS security that the certificate is not considered valid by the browser. This is specifically because the certificate is not issued to "dev.to" but to the actual server under the "fastly.net" domain. Will this continue, or will there be an eventual valid certificate for the "dev.to" domain to allow use without CORS violations in a browser?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (7)
Hi @jrsofty, we recently updated the API to be able to serve content behind CORS restrictions, let me know if that works for you :)
Changelog: Query the DEV API from a JavaScript Frontend!
rhymes for The DEV Team ・ Feb 27 '20 ・ 1 min read
Thanks for your patience!
Sorry it's been so long, but I finally got around to updating things and it works so much better now. Thanks.
I believe our intention is to fix this, but honestly we haven't had the time to look at it. Speaking without pure certainty, yes, we intend to fix this CORS issue.
If anyone can dump some helpful info on how we might want to approach this general problem, feel free to leave it here.
I'm having this issue as well
I solved this issue by using a little PHP script uses curl to call the dev.to api, and delivers it to my frontend.
Could you post the script?
dev.to/jrsofty/cors-problem-workar...