Skip to content

Commit

Permalink
Everything done and working fine
Browse files Browse the repository at this point in the history
  • Loading branch information
rajRishi22 committed Aug 8, 2024
1 parent d9ba892 commit 037c7f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.get('/',(req,res)=>{
app.use((req,res,next)=>{
res.setHeader("Acess-Control-Allow-Origin","http://localhost:3000");
res.header("Acess-Control-Allow-Headers",
"Origin, X-Requested-With, Conten-Type, Accept"
"Origin, X-Requested-With, Content-Type, Accept"
);
next();
});
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Home() {

const loadData = async () => {

let response = await fetch('https://zaykaexpress-backend.onrender.com/api/foodData', {
let response = await fetch('http://localhost:5000/api/foodData', {
method: 'POST',
headers: { 'Content-Type': 'application/json' }
});
Expand Down

0 comments on commit 037c7f4

Please sign in to comment.