Validate Token for Wix Captcha Backend

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?

Could it be that Wix Block apps actually run on a different domain in Publish Mode (like html-component does), which you a)have to find out b)whitelist inside captcha settings in Google?

I cannot control the google captcha setting as I’m using the wix captcha backend module.

However in the error message the domain seems to be the sameas site domain.