diff --git a/CorsClient/CorsClient/wwwroot/ETone.html b/CorsClient/CorsClient/wwwroot/ETone.html new file mode 100644 index 0000000..ceaa2b9 --- /dev/null +++ b/CorsClient/CorsClient/wwwroot/ETone.html @@ -0,0 +1,131 @@ + + + + + CORS跨域 客户端 + + + + + + + +
+        默认内容
+    
+ + \ No newline at end of file diff --git a/CorsClient/CorsClient/wwwroot/GetToken.html b/CorsClient/CorsClient/wwwroot/GetToken.html deleted file mode 100644 index ff6e577..0000000 --- a/CorsClient/CorsClient/wwwroot/GetToken.html +++ /dev/null @@ -1,42 +0,0 @@ - - - demo - - - - -
-

-        
-
- \ No newline at end of file diff --git a/CorsClient/CorsClient/wwwroot/Index.html b/CorsClient/CorsClient/wwwroot/Index.html index 759ec4d..391cdb7 100644 --- a/CorsClient/CorsClient/wwwroot/Index.html +++ b/CorsClient/CorsClient/wwwroot/Index.html @@ -14,8 +14,13 @@ var ajaDataType = $(this).attr("responseDataType"); var ajaxRequestData = $(this).attr("requestData"); if (ajaxContentType.indexOf("json") > 0) { - var jsonData = JSON.parse(ajaxRequestData) - ajaxRequestData = JSON.stringify(jsonData); + if (ajaxRequestData == "") { + ajaxRequestData = ""; + } + else { + var jsonData = JSON.parse(ajaxRequestData) + ajaxRequestData = JSON.stringify(jsonData); + } }; $.ajax({ //请求方法 diff --git a/CorsClient/CorsClient/wwwroot/JianHang.html b/CorsClient/CorsClient/wwwroot/JianHang.html deleted file mode 100644 index b05f043..0000000 --- a/CorsClient/CorsClient/wwwroot/JianHang.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - iFrame Tab Demo - - - - - - - -
- -
- - \ No newline at end of file diff --git a/CorsClient/CorsClient/wwwroot/OtherWebDemo.html b/CorsClient/CorsClient/wwwroot/OtherWebDemo.html deleted file mode 100644 index e230bbb..0000000 --- a/CorsClient/CorsClient/wwwroot/OtherWebDemo.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - iFrame Tab Demo - - - - - - -
- -
- - \ No newline at end of file diff --git a/CorsClient/CorsClient/wwwroot/SetCookie.html b/CorsClient/CorsClient/wwwroot/SetCookie.html deleted file mode 100644 index 70b605c..0000000 --- a/CorsClient/CorsClient/wwwroot/SetCookie.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - 设置登陆相关的Cookie - - - -
- 正在设置登陆Cookie信息 ...... -
- - - \ No newline at end of file diff --git a/CorsClient/CorsClient/wwwroot/favicon.ico b/CorsClient/CorsClient/wwwroot/favicon.ico new file mode 100644 index 0000000..6c5c99f Binary files /dev/null and b/CorsClient/CorsClient/wwwroot/favicon.ico differ