You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
About half the time I find "junk" in my request payload. Naturally, the site I am communicating with complains. {"message": "Unsupported JSON format : Could not create a JSON event when trying to serialize"}
Is there some technique to leave particular requests out of the special magic? I think you add something to XMLHttpRequest's prototype. Perhaps I should new the original object. Is that available somewhere?
The text was updated successfully, but these errors were encountered:
The original function is always saved as csrf_functionname; look in csrf-magic.js to see how its done. Maybe we should just split the JS file into two and make the overloading optional...
I believe this was resolved by modifying the send and process functions to properly identify when objects were being used and thus inject the magic token as an element of the object rather than as a prefix string (which is incorrect).
About half the time I find "junk" in my request payload. Naturally, the site I am communicating with complains. {"message": "Unsupported JSON format : Could not create a JSON event when trying to serialize"}
The other half of the time, the payload is not affected. I get a 200 back.
Is there some technique to leave particular requests out of the special magic? I think you add something to
XMLHttpRequest
's prototype. Perhaps I shouldnew
the original object. Is that available somewhere?The text was updated successfully, but these errors were encountered: