回答編集履歴
1
追記
test
CHANGED
@@ -5,3 +5,59 @@
|
|
5
5
|
ぐぐってみるとプロクシのキャッシュやらパーミッションやらがあると
|
6
6
|
|
7
7
|
エラーが出る場合あるみたいですが
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
#追記
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
送り側
|
16
|
+
|
17
|
+
```HTML
|
18
|
+
|
19
|
+
<script src="js/jquery.js"></script>
|
20
|
+
|
21
|
+
<script>
|
22
|
+
|
23
|
+
$(function(){
|
24
|
+
|
25
|
+
$('[type=button]').on('click',function(){
|
26
|
+
|
27
|
+
$.ajax({
|
28
|
+
|
29
|
+
url:"http://localhost:8080/api/v1/test",
|
30
|
+
|
31
|
+
type:"post",
|
32
|
+
|
33
|
+
success: function(msg){
|
34
|
+
|
35
|
+
console.log(msg);
|
36
|
+
|
37
|
+
},
|
38
|
+
|
39
|
+
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
40
|
+
|
41
|
+
console.log(textStatus);
|
42
|
+
|
43
|
+
},
|
44
|
+
|
45
|
+
});
|
46
|
+
|
47
|
+
});
|
48
|
+
|
49
|
+
});
|
50
|
+
|
51
|
+
</script>
|
52
|
+
|
53
|
+
<input type="button" value="test">
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
のような感じで、textStatusがerrorなんでしょうか?
|
58
|
+
|
59
|
+
firefoxの開発環境で確認するとコンソールのネットワークで
|
60
|
+
|
61
|
+
POST先のURLとの通信状況が確認できます。
|
62
|
+
|
63
|
+
応答ヘッダや要求ヘッダに想定外のおかしなデータは出ていませんか?
|