From 11ad0fcba798c0302c65d0869698131b278b42ca Mon Sep 17 00:00:00 2001 From: Eric Roth <28618316+lifeeric@users.noreply.github.com> Date: Wed, 15 Apr 2020 01:42:17 -0400 Subject: [PATCH] Update Character.js --- src/components/Character.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Character.js b/src/components/Character.js index a120c3b..0e88a4b 100644 --- a/src/components/Character.js +++ b/src/components/Character.js @@ -31,7 +31,7 @@ class Character extends Component { this.props.selectedChar ); this.setState({ isLoading: true }); - fetch('https://swapi.co/api/people/' + this.props.selectedChar) + fetch('https://swapi.co/api/people/' + this.props.selectedChar, {mode: 'no-cors'}) .then(response => { if (!response.ok) { throw new Error('Could not fetch person!');