gcui-art / suno-api

Use API to call the music generation AI of suno.ai, and easily integrate it into agents like GPTs.
https://suno.gcui.ai
GNU Lesser General Public License v3.0
886 stars 197 forks source link

CORS error #63

Closed tob-har closed 2 months ago

tob-har commented 2 months ago

When deployed to Vercel, all GET requests work as intended when calling them from another webApp.

When calling a POST request like custom_generate the API returns with an CORS error, not allowing the other webApp to perform this API call.

Any idea if this is intended behaviour or a bug or a missing feature? If possible: How can domains be allowed to request the API... maybe via setting an CORS request header?