I've done a bit of research regarding how CORS works, but I'll be honest, I'm a newbie at this particular aspect of development.
I have an API which I'd like to expose to anyone who is using a valid API key. The level of security here is minimal - the purpose of the API key is simply to help identify who is making the request. The information being requested is publicly available information, so I'm not too concerned with security.
The way the code works is that, when the API call is made, it validates the API key, and if the key is valid and matches with the information being requested, the API returns the relevant information.
I'm currently using "*" for origins, headers, and methods for my controller. Is there any reason to change this to something else, and if so, what should I be using?