Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
invite post to use application/JSON changed to .ajax from .post to allow content type to be set
Aaron van Meerten76638f524d3c
diff --git a/react/features/invite/functions.js b/react/features/invite/functions.jsindex 6f112b506d..483c9cbdb4 100644--- a/react/features/invite/functions.js+++ b/react/features/invite/functions.js@@ -275,15 +275,20 @@ export function invitePeopleAndChatRooms( // eslint-disable-line max-params}return new Promise((resolve, reject) => {- $.post(- `${inviteServiceUrl}?token=${jwt}`,- JSON.stringify({- 'invited': inviteItems,- 'url': inviteUrl- }),- resolve,- 'json')- .fail((jqxhr, textStatus, error) => reject(error));+ $.ajax({+ url: `${inviteServiceUrl}?token=${jwt}`,+ data: JSON.stringify({+ 'invited': inviteItems,+ 'url': inviteUrl+ }),+ dataType: 'json',+ contentType: 'application/json', // send as JSON+ success: resolve, // called when success is reached+ // called when there is an error+ error: (jqxhr, textStatus, error) => {+ reject(error);+ }+ });});}