Hacker News new | ask | show | jobs
by Liquidor 2815 days ago
CORS is mostly used to prevent attacks from a browser script on a non-whitelisted website (CSRF etc.).

To prevent someone abusing your API otherwise, use an authentication method.