跨域
咳咳,您好请多指教!
咳咳,您好请多指教!
展开
-
laravel7配置跨域
1.config/cors.php 这个cors 文件 全部复制下面的代码 return [ /* * You can enable CORS for 1 or multiple paths. * Example: ['api/*'] */ 'paths' => [], /* * Matches the request method. `[*]` allows all methods. */ 'allowed_meth原创 2020-08-23 10:22:05 · 652 阅读 · 0 评论 -
vue 配置 nginx 监听接口 所有状态码
server { listen 80; server_name DataAnalysis; location / { if ($request_method = 'OPTIONS'){ add_header 'Access-Control-Allow-Origin' '*'; add...转载 2020-04-19 20:56:40 · 324 阅读 · 0 评论 -
nginx 下 解决 vue 跨域问题
找到对应的nginx 的 xxx.conf 文件 进行如下配置 server { listen 80; # For https # listen 443 ssl default_server; # listen [::]:443 ssl default_server ipv6only=on; # ssl_certificate /etc/nginx...原创 2020-02-25 22:20:27 · 746 阅读 · 0 评论