nishant-666/Dall-E-API-with-React

CORS Header

Opened this issue · 0 comments

When cloning the repo and testing the generate button after adding my API key, I receive the error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.openai.com/v1/images/generations. (Reason: CORS request did not succeed). Status code: (null).

Is something else needed apart from an API key to get this to work? Thank you!