Les règles CORS ne fonctionnent pas pour le messager d’engagement

Les règles CORS ne fonctionnent pas pour la messagerie d’engagement – ServiceNow Community ‘); $(this).append(divContainer); $(divContainer).fadeIn(); var userId = $(this).attr(‘href’).replace(/.*/user-id//gi,”); var windowWidth = $(window).width(); var gauche = $(this).offset().left; var cardWidth = divContainer.outerWidth(); if ((left + cardWidth) > (windowWidth – 25)) { var réglage = (left + cardWidth) – (windowWidth + 25) + 50; divContainer.css(‘left’, (-1 * ajustement) + ‘px’); } $.ajax({ url : ‘/community/s/plugins/custom/servicenow/servicenow/theme-lib.profile-card?tid=-5389226008552481899’, tapez : ‘post’, dataType : ‘html’, données : {“userId”: userId}, beforeSend : function() {}, succès : function(data) { $(‘.info-container’, divContainer).append(data }, erreur : function() { $( ‘.info-container’, divContainer).append(”); }, complet : function() { $(‘.spinner’, divContainer).remove(); }); $(‘body’).on(‘click’, ‘.user-profile-card’, function(evt) { if (!$(evt.target).hasClass(‘profile-link’)) { evt.preventDefault (); } evt.stopPropagation(); }); })(LITHIUM.jQuery); ;(function($) { // Appliquer la fonction de fermeture function applyClose(){ $(‘.InfoMessage, .FilteredByLabelName, .FilteredByMessageStatus’).each(function(){ $(this).find(‘[role=”alert”] p’).append(”); }); $(document).on(‘cliquez’,'[role=”alert”] .alert-close’,function(evt){ $(evt.target).parents(‘[role=”alert”]’).parent(‘div’).remove(); }); } // Fonction de lecture du document $(document).ready(function() { applyClose(); $( document ).ajaxComplete(function(event, xhr, settings) { applyClose(); }); }); })(LITHIUM.jQuery); LITHIUM.PartialRenderProxy({“limuirsComponentRenderedEvent”:”LITHIUM:limuirsComponentRendered”,”relayEvent”:”LITHIUM:partialRenderProxyRelay”,”listenerEvent”:”LITHIUM:partialRenderProxy”}); LITHIUM.AjaxSupport({“ajaxOptionsParam”:{“event”:”LITHIUM:partialRenderProxyRelay”,”parameters”:{“javascript.ignore_combine_and_minify”:”true”}},”tokenId”:”ajax”,”elementSelector”:document ,”action”: “partialRenderProxyRelay”, “feedbackSelector”: false, “url”: LITHIUM.Auth.API_URL = “/community/util/authcheckpage”; LITHIUM.Auth.LOGIN_URL_TMPL = “/community/s/plugins/common /feature/oidcss/sso_login_redirect/providerid/default?referer=https%3A%2F%2FREPLACE_TEXT”; LITHIUM.Auth.KEEP_ALIVE_URL = “/community/status/blankpage?keepalive”; LITHIUM.Auth.KEEP_ALIVE_TIME = 300000; LITHIUM.Auth .CHECK_SESSION_TOKEN = ‘gITMifi41VoCRc0dFE0AGs1fXJzRGmWvJOiTnXUj3tI.’; LITHIUM.AjaxSupport.useTickets = false;
#Les #règles #CORS #fonctionnent #pas #pour #messager #dengagement

Facebook
Twitter
LinkedIn
Pinterest

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.