I came across this code and wanted to warn you that you have exposed a valid developer key in a public repository. You should first invalidate the key and than remove it from your repository. Note that even when you commit a updated version the key will still be visible in the commit history. You may want to have a look at this article
|
return fetch("https://developers.zomato.com/api/v2.1/search?entity_id="+cityId+"&entity_type=city&q="+name+"&start=0&count=50",{ |
|
'method':'GET', |
|
headers:{ |
|
'user-key':'87e52a3aed2978f12ba76200bad44abf', |
|
'Accept': 'application/json', |
|
}, |
I came across this code and wanted to warn you that you have exposed a valid developer key in a public repository. You should first invalidate the key and than remove it from your repository. Note that even when you commit a updated version the key will still be visible in the commit history. You may want to have a look at this article
restaurant_based_react_app/components/WebContent.js
Lines 54 to 59 in 61747c4