replicate-javascript
replicate-javascript copied to clipboard
No 'Access-Control-Allow-Origin' header is present on the requested resource
I'm getting a CORS error and it is because I can't go across domains from my domain to yours. Any suggestions?
Access to fetch at 'https://api.replicate.com/v1/predictions' from origin 'https://ghostwriter-ai.com' 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