⬆️ updated the API endpoint to bypass CORS errors

This commit is contained in:
Indrajith K L
2019-03-08 17:29:38 +05:30
parent f3ac5a050c
commit 2ee2a49e9a

View File

@@ -85,7 +85,7 @@ export default class SearchField extends Component {
});
axios({
method: 'get',
url: `https://haveibeenpwned.com/api/v2/breachedaccount/${this.state.isPawnedEmail}`
url: `https://ispwned.glitch.me/${this.state.isPawnedEmail}`
}).then((response) => {
const breachList = response.data;
this.setState({