What I'm looking to do is add parameters to an Ember Data save for for specific models. The parameters I'm looking to add will come from and ajax call to my Grails back-end, to generate a token for CSRF mitigation. One of the parameters will be the URL that will eventually be called by the save along with the CSRF token. In grails these parameters are usually part of a form, and look like this:
<input type="hidden" name="SYNCHRONIZER_TOKEN" value="714af404-b10a-459b-9e09-663a6e4cf6b3" id="SYNCHRONIZER_TOKEN">
<input type="hidden" name="SYNCHRONIZER_URI" value="url the save function is going to use" id="SYNCHRONIZER_URI">
Aucun commentaire:
Enregistrer un commentaire