lotus-1 / FoodRecipes

week-2: API project
0 stars 3 forks source link

Fetching returns an error #15

Open shiryz opened 5 years ago

shiryz commented 5 years ago

When pressing any button, the following error appears in the console Access to fetch at 'http://www.recipepuppy.com/api/?i=beef&mainCurse&p=3' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin'

You might have that already fixed by adding an extension that allows cross-origin requests

shiryz commented 5 years ago

https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi/related?hl=en-US