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
I'm using StackTrace.report to send errors to my server and i need a way to send more headers than the ones provided by StackTrace (i use Spring to protect a REST API against CSRF and i need to send a header called "X-CSRF-TOKEN").
Maybe StackTrace.report should have an "options" parameter where i could add my custom header:
This adds a 4th Object parameter for request options to
StackTrace.report(). Specifying headers: {} allows one to
customize request headers.
Issue: #168
I'm using StackTrace.report to send errors to my server and i need a way to send more headers than the ones provided by StackTrace (i use Spring to protect a REST API against CSRF and i need to send a header called "X-CSRF-TOKEN").
Maybe StackTrace.report should have an "options" parameter where i could add my custom header:
var options = { headers: { X-CSRF-TOKEN: 'xxxxxxxxxxxxxxxxxxx'}}; StackTrace.report(stackframes, url, message, options)
This new parameter could be used to add more options later.
The text was updated successfully, but these errors were encountered: