質問するログイン新規登録

質問編集履歴

2

2017/02/23 07:44

投稿

sss_ym
sss_ym

スコア8

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,7 @@
1
1
  es6
2
2
 
3
+ PUT, DELETE
3
- PUT非同期処理を行う際に
4
+ 非同期処理を行う際に
4
5
  ```
5
6
  Fetch API cannot load [API URI].
6
7
  Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

1

2017/02/23 07:43

投稿

sss_ym
sss_ym

スコア8

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,4 @@
1
1
  es6
2
- vue.js 1.0.26 or 2.0.1
3
- laravel 5.4
4
2
 
5
3
  PUT非同期処理を行う際に
6
4
  ```
@@ -8,8 +6,5 @@
8
6
  Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
9
7
  Origin [Request URI] is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
10
8
  Uncaught (in promise) Error: Failed to fetch
11
- at eval (eval at <anonymous> (app.js:92), <anonymous>:58:13)
9
+
12
- (anonymous) @ Example.vue?c13b:44
13
- ```
10
+ ```
14
-
15
- OPTIONSメソッドが使われます。