From 2ee2a49e9a7edf750bcbb2fbc7201c494d916562 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Fri, 8 Mar 2019 17:29:38 +0530 Subject: [PATCH] :arrow_up: updated the API endpoint to bypass CORS errors --- src/app/SearchField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/SearchField.js b/src/app/SearchField.js index 3077330..af58011 100644 --- a/src/app/SearchField.js +++ b/src/app/SearchField.js @@ -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({