Question regarding .authorize() to check the token validity from a backend file.
Scenario: Make POST call from a page on Website 1 containing the token in the post request body.
The post call is received by Website 1 's (yes same website) HTTP function which tries to validate it using the .authorize() function in a jsw backend file.
Results: Getting a 401 error (Request failed with status code 401) (wix-trace-id: 3aed4197828f10c0:3aed4197828f10c0:0:1)
The POST call is actually made from an app I built using Wix Blocks so cannot directly import the backend function on the app.
However, when I try the POST call from the Wix Blocks Editor, it works - problem is only with Live Site. I can send the HTTP requests - cors is not an issue as I’ve already dealt with that.
Thoughts?