Why did Not working Laravel middleware CORS with Vue.js

后端 未结 1 1952
情歌与酒
情歌与酒 2021-01-20 16:46

working with Laravel 5.7 as backend and Vue.js as frontend. so, I need send http request fron Vue to Laravel backend. so, I used Laravel CORS package to using github link as

1条回答
  •  梦谈多话
    2021-01-20 17:17

    It is only for localhost & in production if you use https then this issue will not raise any more. However for local test you can open chrome browser in disabled security mode. Details about how to do

    Access-Control-Allow-Origin (Laravel & Vue)

    0 讨论(0)
提交回复
热议问题