#883 Add option to disable CSRF tokens

This commit is contained in:
Cohee
2023-08-06 16:42:15 +03:00
parent 04a2d82a8d
commit 151f4d322c
3 changed files with 43 additions and 25 deletions

View File

@ -524,7 +524,11 @@ const system_messages = {
$(document).ajaxError(function myErrorHandler(_, xhr) {
if (xhr.status == 403) {
toastr.warning("doubleCsrf errors in console are NORMAL in this case. Just reload the page or close this tab.", "Looks like you've opened SillyTavern in another browser tab", { timeOut: 0, extendedTimeOut: 0, preventDuplicates: true });
toastr.warning(
"doubleCsrf errors in console are NORMAL in this case. If you want to run ST in multiple tabs, start the server with --disableCsrf option.",
"Looks like you've opened SillyTavern in another browser tab",
{ timeOut: 0, extendedTimeOut: 0, preventDuplicates: true },
);
}
});