samedi 24 janvier 2015

Reason why client-side JavaScript does not allow access to POST/PUT/etc contents


Is there any theoretical reason why client-side JavaScript could not be spec'd to allow for direct access to POST or PUT contents without need for a server language to write it into client-side JavaScript first?


It would seem that this, besides avoiding an unnecessary dependency on server-side code where not needed, would allow for arbitrary length command-line type operations with side effects (such as changing localStorage) and could also open up what could be done with HTML served over the file:// protocol (assuming the POST to the file:// originated from a trusted context).





Aucun commentaire:

Enregistrer un commentaire