Sunday 25 November 2018

Set property on res?

On the client I have the code (not written by me): $.post( { url: 'myurl', data: data, contentType: 'application/json', success: res => { if (res.myprop) { So I am trying to set myprop in node by res.myprop = true before res.send(data) but it is always undefined on the client?Thanks

Submitted November 25, 2018 at 04:11PM by snicksn

No comments:

Post a Comment