sussy-code / smov

Sudo-flix's source code (Allegedly)
https://docs.undi.rest
MIT License
803 stars 778 forks source link

[Bug]: CORS error every time #94

Closed asakura42 closed 2 months ago

asakura42 commented 2 months ago

What happened?

So I created Vercel thing, connected to my worker and to backend.undi.rest (tests in Admin panel are OK). But every time I start any video it fails and console outputs:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.whvx.net/status. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

and

Access to fetch at 'https://api.whvx.net/status' from origin 'https://*.vercel.app' has been blocked by CORS policy: 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.

and so on for all the sites. What should I do?

What browsers are you seeing the problem on?

No response

Steps to reproduce?

No response

Other relevant information

No response

ztpn commented 2 months ago

NSBX and WHVX apis are closed source