⬆️ updated the API endpoint to bypass CORS errors
This commit is contained in:
@@ -85,7 +85,7 @@ export default class SearchField extends Component {
|
|||||||
});
|
});
|
||||||
axios({
|
axios({
|
||||||
method: 'get',
|
method: 'get',
|
||||||
url: `https://haveibeenpwned.com/api/v2/breachedaccount/${this.state.isPawnedEmail}`
|
url: `https://ispwned.glitch.me/${this.state.isPawnedEmail}`
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
const breachList = response.data;
|
const breachList = response.data;
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|||||||
Reference in New Issue
Block a user