I have checked everywhere and cannot find a straightforward answer to this question - I have a google cloud function that can be called by AllUsers (I do not want it authenticated, it's a function that triggers onload for pages on my site that do not require authentication).
How can I only allow it to be called from my domain? I have tried adding my domain as a principal with role Cloud Functions Invoker and this still returns [Error] Origin [myDomain] is not allowed by Access-Control-Allow-Origin. Status code: 403