Is there a good summary of where from Salesforce allow and does not allow calling out to 3rd party REST API's (assume header Access-Control-Allow-Origin: *).
Possible scenarios I can imagine:
Lightning component on a standard layout
Lightning component on a community page
Lightning component inside VF wrapper
Visualforce page inside standard layout
Visualforce page inside console page
Javascript buttons
I've seen people complain unable to call WebSockets from Lightning. Is that a strategic Salesforce's thing (all data should flow thru us and we are going to make sure you pay pretty penny for it (or lock your org if you do too many per second)) or more of a security thing (nothing can be trusted externally). If later, what are the options and workarounds?