@mikemoynihan99 I have a security question about your answer.
When I inspect the code of the iFrame, I can see my Client ID from Google, and I don’t think that it should be publicly available. Is there a way where I can add that Client ID in the backend?
Try fetch method.
Note when a request is made using the client ID, google will only allow entry if the request was made from a URL that you have authorized in “Authorized JavaScript origins”.
For example if you only authorize requests from www.YourWebsite.com then someone else making a request with your client ID from www.TheirWebsite.com would not gain entry.
@mikemoynihan99 thank you for your reply. I will attempt to achieve what you have suggested. Have a great day XD