I am building a frontend application using react and I am wondering whether it is risky to expose API endpoint URLs (ex: https://myapi.com/v1/getitems
) on GitHub, assuming that the endpoint has several security measures that are not exposed such as CORS
and JWT Token Bearer Authentication
. I would assume not, since, if someone were to take the endpoint and send requests, they would need a token and be allowed to do so by CORS.
Is there any security risk in doing so?