Since it's so easy for developers to circumvent, why did browser vendors force this solution on everyone, rather than leaving cross-origin security up to developers, or at least making CORS opt-in?
What am I missing here?
> Since it's so easy for developers to circumvent But not for hackers trying to inject JS into insecure webpages.
But I do get your point, there should have been a better implementation, I have the same complaint against HTTPS (makes development unnecessarily complicated).