-
I am creating an app that lets comic book store owners add weekly titles to their customers' virtual pull boxes. I have all the mechanics in place where you can add titles to pull boxes but I need a database to use instead of my current seeded data. I want this week's data to show up when I click on comics. Here are my promises set up to get Tuesday and Wednesday's data (I took out my username/password for privacy):
Here is the function at my books index page for displaying the data:
When I run my page, here are the error messages I get in the console: Access to fetch at 'https://metron.cloud/api/issue/?store_date=2023-09-05' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. Access to fetch at 'https://metron.cloud/api/issue/?store_date=2023-09-06' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. Not quite sure where to go from here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It took a two hour coding session with some people, I fixed my issues by using the back end to access the data, now I'm getting a 429 Error for Too Many Requests... |
Beta Was this translation helpful? Give feedback.
It took a two hour coding session with some people, I fixed my issues by using the back end to access the data, now I'm getting a 429 Error for Too Many Requests...