Ich versuche folgenden Aufruf zu verwenden, um mein Modul für das neue Token-System fit zu machen:
Bevor das Token-System eingeführt wurde, funktionierten meine Requests auch mittels jQuery Aufruf:Code:new Request.Contao({ onSuccess : handleResponse, onFailure : ajaxError, url : tl_websitepath+'system/modules/shoutbox/shoutbox.php?BE_USER_AUTH=' + $.cookie('BE_USER_AUTH') }).post({'data': JSON.stringify(params), 'REQUEST_TOKEN': token }); // token wird bei der antwort auf response.token gesetzt
Mit der neuen Variante kommt die 'Invalid-Request-Token Fehlerseite', auch schon beim ersten Request. Mein Post Request hat aber das Token mit drin.Code:$.ajax( { type : "POST", url : tl_websitepath+'system/modules/shoutbox/shoutbox.php?BE_USER_AUTH=' + $.cookie('BE_USER_AUTH'), data : { 'data' : JSON.stringify(params) }, success : handleResponse, error : ajaxError, dataType : "text" });
Hat jemand eine Idee an was das liegen kann? Mein Request geht direkt auf meine Modul-PHP-Datei. Evtl. ist das das Problem? Hat jemand schonmal so etwas gemacht und dabei ajax.php verwendet?Code:Parameter | application/x-www-form-urlencoded REQUEST_TOKEN | 7f5586120173ae743d774255ec4e486b

 
			
 
			
			 invalid request token bei be modul
 invalid request token bei be modul
				 
					
					
					
						 Zitieren
Zitieren 
 
				