質問編集履歴
3
URLが間違っていました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -210,7 +210,7 @@
|
|
210
210
|
|
211
211
|
Response {type: "cors", url: "http://0.0.0.0:8000", redirected: false, status: 200, ok: true, …}
|
212
212
|
|
213
|
-
body:(...)
bodyUsed:false
headers:Headers {}
ok:true
redirected:false
status:200
statusText:"OK"
type:"cors"
url:"http://0.0.0.0:8000
|
213
|
+
body:(...)
bodyUsed:false
headers:Headers {}
ok:true
redirected:false
status:200
statusText:"OK"
type:"cors"
url:"http://0.0.0.0:8000"
__proto__:Response
|
214
214
|
|
215
215
|
```
|
216
216
|
|
2
URLが間違っていました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -208,7 +208,7 @@
|
|
208
208
|
|
209
209
|
```JSコンソール
|
210
210
|
|
211
|
-
Response {type: "cors", url: "http://0.0.0.0:8000
|
211
|
+
Response {type: "cors", url: "http://0.0.0.0:8000", redirected: false, status: 200, ok: true, …}
|
212
212
|
|
213
213
|
body:(...)
bodyUsed:false
headers:Headers {}
ok:true
redirected:false
status:200
statusText:"OK"
type:"cors"
url:"http://0.0.0.0:8000/business_term/search/"
__proto__:Response
|
214
214
|
|
1
コンソールコードを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -206,6 +206,14 @@
|
|
206
206
|
|
207
207
|
|
208
208
|
|
209
|
+
```JSコンソール
|
210
|
+
|
211
|
+
Response {type: "cors", url: "http://0.0.0.0:8000/business_term/search/", redirected: false, status: 200, ok: true, …}
|
212
|
+
|
213
|
+
body:(...)
bodyUsed:false
headers:Headers {}
ok:true
redirected:false
status:200
statusText:"OK"
type:"cors"
url:"http://0.0.0.0:8000/business_term/search/"
__proto__:Response
|
214
|
+
|
215
|
+
```
|
216
|
+
|
209
217
|
|
210
218
|
|
211
219
|
問題として、Javascript側でのfetch成功時にresの中身を出力してみるのですが、bodyの中身がカラになってしまい、JSON取得が失敗となってしまいます。
|