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 am able to initialize the BotMan web widget and get it to work, but when I send a message the POST is failing because UF checks for CSRF tokens in the post route. I am looking for a way to add additional fields like the CSRF tokens to be added to the POST along with the message and some of the other parameters that are being sent. ssnukala/ufsprinkle-botsevak#1.
I am thinking 2 potential options
Option 1. along with text add another array called [additionalParams] or something like that to append to the message. additionalParams={}
I am implementing BotMan web-widget plugin for https://www.userfrosting.com/ and building this as a sprinkle (UF's version of the plugin). https://github.com/ssnukala/ufsprinkle-botsevak
I am able to initialize the BotMan web widget and get it to work, but when I send a message the POST is failing because UF checks for CSRF tokens in the post route. I am looking for a way to add additional fields like the CSRF tokens to be added to the POST along with the message and some of the other parameters that are being sent. ssnukala/ufsprinkle-botsevak#1.
I am looking at the following code on BotMan.
https://github.com/botman/web-widget/blob/master/src/chat/botman.ts#L17-L43
I am thinking 2 potential options
Option 1. along with text add another array called [additionalParams] or something like that to append to the message. additionalParams={}
Option 2. provide a call back function to append to the POST data before the POST happens beforePostCall: Function
I am thinking Option 2 may be the way to go and will make this very flexible.
This will help dynamically add additional data to the POST message and open this up for additional use cases for a chat based application !
The text was updated successfully, but these errors were encountered: