I’m making fetch post requests from the backend to the spotify api. it works in the editor but when I publish the site and try and use it on the live site I get an invalid_grant invalid authorization key error. Why might this be? I already verified my permissions are set to allow anyone to call functions from the backend.
Since you are getting invalid_grant invalid authorization key error, then y our issue should be directed to Spotify technical support.
Running a Live Wix site is slightly different from running in the Editor - system and infrastructure issues. Difficult to know what the issue might be without knowing how you are performing the fetch.
I was wondering if perhaps sending the http request from the editor has a different origin url then the backend of the live site that I need to whitelist with spotify
@latlas I believe that’s the issue - Preview and Live are different environments.