質問編集履歴

1

試したコード 結果的に同じエラー を掲載しました

2023/04/03 15:11

投稿

tasuuuuku
tasuuuuku

スコア2

test CHANGED
File without changes
test CHANGED
@@ -29,6 +29,20 @@
29
29
  })
30
30
  ```
31
31
 
32
+ ### 試した該当のソースコード
33
+
34
+ ``` vue![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2023-04-04/8a99f674-6f01-4ddb-9d4b-2fb64e2b14bd.png)
35
+ const fetched = await fetch('http://[::1]:5000/api`, {
36
+ method: "POST",
37
+ headers: {
38
+ 'Content-Type': 'application/json',
39
+ 'Access-Control-Allow-Origin': '*',
40
+ },
41
+ body: JSON.stringify({
42
+ "prompt": "prompt",
43
+ })
44
+ ```
45
+
32
46
  バックエンド Fastify のコンソール
33
47
  ```
34
48
  (node:3615) [FSTDEP011] FastifyDeprecation: Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`.