You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using StackBlitz to build a Next.js app leads to a blocking of API calls to Replicate.
Steps to Reproduce
Go to 'Next.js starter template'. Build API call to replicate.
See error below
Expected Behavior
A running POST request throught the Replicate API.
Screenshots/Screencast
Access to fetch at 'https://api.replicate.com/v1/predictions' from origin 'https://stackblitzstarterXXXYYYZZZ.w-credentialless-staticblitz.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.
Additional Context/Questions
Have been troubleshooting this for a few hours, seems to be the problem that Replicate.com recognises the StackBlitz request as not coming from the server side or similar.
The text was updated successfully, but these errors were encountered:
Description of Bug
Using StackBlitz to build a Next.js app leads to a blocking of API calls to Replicate.
Steps to Reproduce
Expected Behavior
A running POST request throught the Replicate API.
Screenshots/Screencast
Access to fetch at 'https://api.replicate.com/v1/predictions' from origin 'https://stackblitzstarterXXXYYYZZZ.w-credentialless-staticblitz.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.
Additional Context/Questions
Have been troubleshooting this for a few hours, seems to be the problem that Replicate.com recognises the StackBlitz request as not coming from the server side or similar.
The text was updated successfully, but these errors were encountered: