I'm building an embeddable javascript library that my users can put into their web apps and serve it to their visitors.
The visitors can engage an action on the library, that triggers some data going back to my server.
How do I authenticate the library without leaking credentials to the visitor? Is an access control list locked to the domain the recommended solution, with no credentials exchanged at all?
I took a look here at this question and it seems to be suggested as an outlandish solution: How can I validate/secure/authenticate a JavaScript-based POST request?