has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

99 views
Skip to first unread message

Paulo Eduardo Monteiro

unread,
Jun 30, 2020, 12:25:25 PM6/30/20
to laravel...@googlegroups.com
Pessoal, boa tarde,

Gostaria de pedir o auxílio de vocês.
O que ocorre é que criei uma API Simples em Laravel para consumir com Vue.JS.

No entanto estou tendo problemas com o CORS. Poderiam me ajudar ???

  Access to XMLHttpRequest at 'http://192.168.0.16:82/api/diplomaquiapi/v1-0/ins/dip/' from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
xhr.js?b50d:178 POST http://192.168.0.16:82/api/diplomaquiapi/v1-0/ins/dip/ net::ERR_FAILED
dispatchXhrRequest @ xhr.js?b50d:178
xhrAdapter @ xhr.js?b50d:12
dispatchRequest @ dispatchRequest.js?5270:52
Promise.then (async)
request @ Axios.js?0a06:61
Axios.<computed> @ Axios.js?0a06:86
wrap @ bind.js?1d2b:9
inserir @ diplomas.js?4f1a:16
salvarDiploma @ index.js?4360:51
wrappedActionHandler @ vuex.esm.js?2f62:792
dispatch @ vuex.esm.js?2f62:457
boundDispatch @ vuex.esm.js?2f62:347
salvar @ DiplomAqui.vue?06b7:276
invokeWithErrorHandling @ vue.runtime.esm.js?2b0e:1854
invoker @ vue.runtime.esm.js?2b0e:2179
original._wrapper @ vue.runtime.esm.js?2b0e:6917 

image.png
 
Reply all
Reply to author
Forward
0 new messages