私はmeetup APIからの応答を取得することにちょっと悩んでいます。エラー私は取得しています:私はここにCORS Cross-Origin Resource Sharing (CORS)が、失敗している仕事にこれを得ることにすべての私の試みに少し読んだVueJSのプリフライトリクエストで斧を使用
var config = {'Access-Control-Allow-Headers': 'Authorization'}
axios.get(`https://api.meetup.com/self/calendar?&sign=true&photo-host=public&page=20`, {headers: config})
.then(response => {
console.log(response.data)
this.posts = response.data
})
.catch(e => {
this.errors.push(e)
})
:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
は、ここに私のコードです。
あなたの誰かがこれを少し光らせてくれますか?
おかげで、
マヌー
:https://www.meetup.com/meetup_api/:1として – FailedUnitTest