質問編集履歴
4
記載ミス
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,36 +7,9 @@
|
|
7
7
|
### 発生している問題・エラーメッセージ
|
8
8
|
|
9
9
|
```
|
10
|
-
Access to XMLHttpRequest at 'http://
|
10
|
+
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.
|
11
11
|
```
|
12
12
|
|
13
|
-
一応他のエラーも載せておきます。
|
14
|
-
```
|
15
|
-
(anonymous) @ (index):33
|
16
|
-
getValue @ (index):13
|
17
|
-
init @ (index):70
|
18
|
-
load (async)
|
19
|
-
(anonymous) @ (index):112
|
20
|
-
(index):33 GET http://192.168.100.113/get_value net::ERR_FAILED
|
21
|
-
(anonymous) @ (index):33
|
22
|
-
getValue @ (index):13
|
23
|
-
init @ (index):70
|
24
|
-
load (async)
|
25
|
-
(anonymous) @ (index):112
|
26
|
-
(index):33 Uncaught (in promise) DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://192.168.100.113/get_value'.
|
27
|
-
at http://192.168.100.113:1234/:33:13
|
28
|
-
at new Promise (<anonymous>)
|
29
|
-
at getValue (http://192.168.100.113:1234/:13:14)
|
30
|
-
at init (http://192.168.100.113:1234/:70:23)
|
31
|
-
(anonymous) @ (index):33
|
32
|
-
getValue @ (index):13
|
33
|
-
init @ (index):70
|
34
|
-
async function (async)
|
35
|
-
init @ (index):70
|
36
|
-
load (async)
|
37
|
-
(anonymous) @ (index):112
|
38
|
-
:1234/favicon.ico:1 GET http://192.168.100.113:1234/favicon.ico net::ERR_CONNECTION_REFUSED
|
39
|
-
```
|
40
13
|
|
41
14
|
|
42
15
|
### 該当のソースコード
|
3
記載ミス
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,6 +10,35 @@
|
|
10
10
|
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.
|
11
11
|
```
|
12
12
|
|
13
|
+
一応他のエラーも載せておきます。
|
14
|
+
```
|
15
|
+
(anonymous) @ (index):33
|
16
|
+
getValue @ (index):13
|
17
|
+
init @ (index):70
|
18
|
+
load (async)
|
19
|
+
(anonymous) @ (index):112
|
20
|
+
(index):33 GET http://192.168.100.113/get_value net::ERR_FAILED
|
21
|
+
(anonymous) @ (index):33
|
22
|
+
getValue @ (index):13
|
23
|
+
init @ (index):70
|
24
|
+
load (async)
|
25
|
+
(anonymous) @ (index):112
|
26
|
+
(index):33 Uncaught (in promise) DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://192.168.100.113/get_value'.
|
27
|
+
at http://192.168.100.113:1234/:33:13
|
28
|
+
at new Promise (<anonymous>)
|
29
|
+
at getValue (http://192.168.100.113:1234/:13:14)
|
30
|
+
at init (http://192.168.100.113:1234/:70:23)
|
31
|
+
(anonymous) @ (index):33
|
32
|
+
getValue @ (index):13
|
33
|
+
init @ (index):70
|
34
|
+
async function (async)
|
35
|
+
init @ (index):70
|
36
|
+
load (async)
|
37
|
+
(anonymous) @ (index):112
|
38
|
+
:1234/favicon.ico:1 GET http://192.168.100.113:1234/favicon.ico net::ERR_CONNECTION_REFUSED
|
39
|
+
```
|
40
|
+
|
41
|
+
|
13
42
|
### 該当のソースコード
|
14
43
|
該当しているのは、getvalueのところです。
|
15
44
|
|
2
記載ミス
title
CHANGED
File without changes
|
body
CHANGED
@@ -275,7 +275,13 @@
|
|
275
275
|
|
276
276
|
```
|
277
277
|
|
278
|
+
エラーから以下を追加しましたが、変わりませんでした。
|
279
|
+
```
|
280
|
+
req.setRequestHeader("Access-Control-Allow-Origin", "*");
|
281
|
+
```
|
278
282
|
|
283
|
+
|
284
|
+
|
279
285
|
### 補足情報(FW/ツールのバージョンなど)
|
280
286
|
|
281
287
|
os:ubuntu
|
1
変更
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
No 'Access'
|
1
|
+
No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
### 発生している問題・エラーメッセージ
|
8
8
|
|
9
9
|
```
|
10
|
-
|
10
|
+
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.
|
11
11
|
```
|
12
12
|
|
13
13
|
### 該当のソースコード
|
@@ -276,11 +276,6 @@
|
|
276
276
|
```
|
277
277
|
|
278
278
|
|
279
|
-
|
280
|
-
### 試したこと
|
281
|
-
|
282
|
-
ここに問題に対して試したことを記載してください。
|
283
|
-
|
284
279
|
### 補足情報(FW/ツールのバージョンなど)
|
285
280
|
|
286
|
-
|
281
|
+
os:ubuntu
|