質問編集履歴
4
記載ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,65 +16,11 @@
|
|
16
16
|
|
17
17
|
```
|
18
18
|
|
19
|
-
Access to XMLHttpRequest at 'http://
|
20
|
-
|
21
|
-
```
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
一応他のエラーも載せておきます。
|
26
|
-
|
27
|
-
```
|
28
|
-
|
29
|
-
(anonymous) @ (index):33
|
30
|
-
|
31
|
-
getValue @ (index):13
|
32
|
-
|
33
|
-
init @ (index):70
|
34
|
-
|
35
|
-
load (async)
|
36
|
-
|
37
|
-
(anonymous) @ (index):112
|
38
|
-
|
39
|
-
(index):33 GET http://192.168.100.113/get_value net::ERR_FAILED
|
40
|
-
|
41
|
-
(anonymous) @ (index):33
|
42
|
-
|
43
|
-
getValue @ (index):13
|
44
|
-
|
45
|
-
init @ (index):70
|
46
|
-
|
47
|
-
load (async)
|
48
|
-
|
49
|
-
(anonymous) @ (index):112
|
50
|
-
|
51
|
-
(index):33 Uncaught (in promise) DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://192.168.100.113/get_value'.
|
52
|
-
|
53
|
-
at http://192.168.100.113:1234/:33:13
|
54
|
-
|
55
|
-
at new Promise (<anonymous>)
|
56
|
-
|
57
|
-
at getValue (http://192.168.100.113:1234/:13:14)
|
58
|
-
|
59
|
-
at init (http://192.168.100.113:1234/:70:23)
|
60
|
-
|
61
|
-
(anonymous) @ (index):33
|
62
|
-
|
63
|
-
getValue @ (index):13
|
64
|
-
|
65
|
-
init @ (index):70
|
66
|
-
|
67
|
-
async function (async)
|
68
|
-
|
69
|
-
init @ (index):70
|
70
|
-
|
71
|
-
load (async)
|
72
|
-
|
73
|
-
(anonymous) @ (index):112
|
74
|
-
|
75
|
-
:1234/favicon.ico:1 GET http://192.168.100.113:1234/favicon.ico net::ERR_CONNECTION_REFUSED
|
76
|
-
|
77
|
-
```
|
19
|
+
Access to XMLHttpRequest at 'http://***/get_value' from origin 'http:/***' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
|
78
24
|
|
79
25
|
|
80
26
|
|
3
記載ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,6 +22,64 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
一応他のエラーも載せておきます。
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
(anonymous) @ (index):33
|
30
|
+
|
31
|
+
getValue @ (index):13
|
32
|
+
|
33
|
+
init @ (index):70
|
34
|
+
|
35
|
+
load (async)
|
36
|
+
|
37
|
+
(anonymous) @ (index):112
|
38
|
+
|
39
|
+
(index):33 GET http://192.168.100.113/get_value net::ERR_FAILED
|
40
|
+
|
41
|
+
(anonymous) @ (index):33
|
42
|
+
|
43
|
+
getValue @ (index):13
|
44
|
+
|
45
|
+
init @ (index):70
|
46
|
+
|
47
|
+
load (async)
|
48
|
+
|
49
|
+
(anonymous) @ (index):112
|
50
|
+
|
51
|
+
(index):33 Uncaught (in promise) DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://192.168.100.113/get_value'.
|
52
|
+
|
53
|
+
at http://192.168.100.113:1234/:33:13
|
54
|
+
|
55
|
+
at new Promise (<anonymous>)
|
56
|
+
|
57
|
+
at getValue (http://192.168.100.113:1234/:13:14)
|
58
|
+
|
59
|
+
at init (http://192.168.100.113:1234/:70:23)
|
60
|
+
|
61
|
+
(anonymous) @ (index):33
|
62
|
+
|
63
|
+
getValue @ (index):13
|
64
|
+
|
65
|
+
init @ (index):70
|
66
|
+
|
67
|
+
async function (async)
|
68
|
+
|
69
|
+
init @ (index):70
|
70
|
+
|
71
|
+
load (async)
|
72
|
+
|
73
|
+
(anonymous) @ (index):112
|
74
|
+
|
75
|
+
:1234/favicon.ico:1 GET http://192.168.100.113:1234/favicon.ico net::ERR_CONNECTION_REFUSED
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
25
83
|
### 該当のソースコード
|
26
84
|
|
27
85
|
該当しているのは、getvalueのところです。
|
2
記載ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -552,6 +552,18 @@
|
|
552
552
|
|
553
553
|
|
554
554
|
|
555
|
+
エラーから以下を追加しましたが、変わりませんでした。
|
556
|
+
|
557
|
+
```
|
558
|
+
|
559
|
+
req.setRequestHeader("Access-Control-Allow-Origin", "*");
|
560
|
+
|
561
|
+
```
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
|
555
567
|
|
556
568
|
|
557
569
|
### 補足情報(FW/ツールのバージョンなど)
|
1
変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
No 'Access'
|
1
|
+
No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
```
|
18
18
|
|
19
|
-
|
19
|
+
Access to XMLHttpRequest at 'http://192.168.100.113/get_value' from origin 'http://192.168.100.113:1234' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
20
20
|
|
21
21
|
```
|
22
22
|
|
@@ -554,18 +554,8 @@
|
|
554
554
|
|
555
555
|
|
556
556
|
|
557
|
-
|
558
|
-
|
559
|
-
### 試したこと
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
ここに問題に対して試したことを記載してください。
|
564
|
-
|
565
|
-
|
566
|
-
|
567
557
|
### 補足情報(FW/ツールのバージョンなど)
|
568
558
|
|
569
559
|
|
570
560
|
|
571
|
-
|
561
|
+
os:ubuntu
|