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

質問編集履歴

2

記述ミスを修正

2019/10/08 13:38

投稿

takuya_am
takuya_am

スコア16

title CHANGED
File without changes
body CHANGED
@@ -149,7 +149,7 @@
149
149
  ```js
150
150
 
151
151
  // コード内容は適当です
152
- export aync function fetchTwitter() => {
152
+ export async function fetchTwitter() => {
153
153
  return await fetch(`https://api.twitter.com/1.1/statuses/home_timeline.json?count=20...hogehoge`);
154
154
  }
155
155
  ```

1

IPアドレスを伏字

2019/10/08 13:38

投稿

takuya_am
takuya_am

スコア16

title CHANGED
File without changes
body CHANGED
@@ -111,7 +111,7 @@
111
111
  エラー内容
112
112
  ```console
113
113
  Access to fetch at 'https://api.twitter.com/1.1/statuses/home_timeline.json?count=50'
114
- from origin 'http://160.16.100.114' has been blocked by CORS policy
114
+ from origin 'http://xxx.xx.xxx.xxx' has been blocked by CORS policy
115
115
  : Response to preflight request doesn't pass access control check
116
116
  : No 'Access-Control-Allow-Origin' header is present on the requested resource.
117
117
  If an opaque response serves your needs,