Open arc9693 opened 4 years ago
Hey @arc9693 can i work on this one? Thanks
@therealansh Go ahead. I have assigned you the issue.
Hey @arc9693 , Using getJson to fetch data from local files would throwback an issue of CORS (cross origin request). Therefore, only https requests are possible. We could solve this issue by running the page on a localhost, by running a xampp or a lamp server
@therealansh @arc9693 Use this with your url: https://cors-anywhere.herokuapp.com/ This will bypass CORS errors from your FE calls
@arc9693 I have created a PR, kindly review it
Currently, the path is the URL of the data.json file in the main repository. People who build on their local and try to add their cards, cannot see their cards until their PR is finally merged. To correct this, we have to include the relative path of the data.json file.
https://github.com/lugnitdgp/Hack-Day/blob/e296f26c67aad38497e27bcaa525d28f60968463/assets/js/profileAdd.js#L1
A similar change is required in the following file: https://github.com/lugnitdgp/Hack-Day/blob/e296f26c67aad38497e27bcaa525d28f60968463/assets/js/repoAdd.js#L2