I think you're making API call from client side app. GitHub jobs API does not allow accessing jobs from client side apps. You need to make API call from server side only. That's why I have used Node.js for making API call
Could somebody please elaborate on the fix for this? I ended up cloning the source repo and trying to access localhost:5000/jobs after yarn start from top-level and server folders (as instructed in readme) but I'm getting no UI in Firefox and console is reporting "Content Security Policy: The page’s settings blocked the loading of a resource at localhost:5000/favicon.ico (“default-src”)."
I've tried to follow the suggestions here: csplite.com/csp212/ but I'm just curious as to why I'm still getting this error even after copying the repo exactly.
Thanks heaps for the tutorial btw, it was super helpful
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, I am getting cors error while hitting the github api, did you face that issue?
I think you're making API call from client side app. GitHub jobs API does not allow accessing jobs from client side apps. You need to make API call from server side only. That's why I have used Node.js for making API call
Understood, thanks for the explanation.
it's my pleasure
EDIT: seems like the cause of this issue is that Github Jobs API is now deprecated (see here: github.blog/changelog/2021-04-19-d...)
Could somebody please elaborate on the fix for this? I ended up cloning the source repo and trying to access localhost:5000/jobs after yarn start from top-level and server folders (as instructed in readme) but I'm getting no UI in Firefox and console is reporting "Content Security Policy: The page’s settings blocked the loading of a resource at localhost:5000/favicon.ico (“default-src”)."
I've tried to follow the suggestions here: csplite.com/csp212/ but I'm just curious as to why I'm still getting this error even after copying the repo exactly.
Thanks heaps for the tutorial btw, it was super helpful