Skip to content

Commit

Permalink
fixing frontend to use window.location.origin
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamada Gasmallah committed Nov 10, 2022
1 parent 91788af commit 97451b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
};

async function logBackend(){
let result = await makeRequest( "GET", /*window.location.origin*/ 'http://localhost:3000' + "/api/hello" );
let result = await makeRequest( "GET", window.location.origin + "/api/hello" );
console.log(result);
};
</script>
Expand Down

0 comments on commit 97451b4

Please sign in to comment.