DedeXHTTP = new XMLHttpRequest(); |
DedeXHTTP.withCredentials = true; |
DedeXHTTP.open("POST", purl, true); |
DedeXHTTP.withCredentials = true; |
DedeXHTTP.open("GET", purl, true); |
DedeXHTTP.withCredentials = true; |
DedeXHTTP.open("GET", purl, false); |
DedeXHTTP.withCredentials = true; |
header("Access-Control-Allow-Credentials:true"); header("Access-Control-Allow-Origin:http://m.genban.org"); |
Header set Access-Control-Allow-Origin "*" |
add_header Access-Control-Allow-Origin *; |
Access-Control-Allow-Origin:* |
<script src="{dede:global.cfg_basehost/}/include/dedeajax2.js"></script> <script type="text/javascript"> function CheckLogin(){ var taget_obj = document.getElementById('_userlogin'); myajax = new DedeAjax(taget_obj,false,false,'','',''); myajax.SendGet2("{dede:global.cfg_basehost/}/member/ajax_loginsta.php"); DedeXHTTP = null; } </script> |