1、通过允许跨域访问实现了跨域请求,但为了使每个请求带上session信息,我设置了withCredentials ,即: axios.defaults.withCredentials = true 然后跨域请求时会出现如下问题: Response to preflight request does ...
分类:
移动开发 时间:
2019-11-16 14:38:57
阅读次数:
152
location / { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-H ...
分类:
其他好文 时间:
2019-11-16 10:45:14
阅读次数:
81
## 避免本地重复输入账号密码 ``` git config --global credential.helper store 执行命令: git config --global credential.helper store git pull 输入你的用户名和密码store模式会存储 查看系统存储 ...
分类:
其他好文 时间:
2019-11-15 22:34:08
阅读次数:
72
mysql互换表中两列数据 <pre>update product set original_price=price,price=original_price;</pre>上面sql语句显然不可取因为先执行original_price=price , original_price的值已经更新为pri ...
分类:
数据库 时间:
2019-11-15 10:44:04
阅读次数:
101
[TOC] 一 同源策略 同源策略(Same origin policy)是一种约定,它是浏览器最核心也最基本的安全功能,如果缺少了同源策略,则浏览器的正常功能可能都会受到影响。可以说Web是构建在同源策略基础之上的,浏览器只是针对同源策略的一种实现 请求的url地址,必须与浏览器上的url地址处于 ...
分类:
其他好文 时间:
2019-11-15 00:08:25
阅读次数:
65
先想一个自己要在本地新建的分支名称,qianjinyan git checkout -b qianjinyan origin/SELLER-2248-1018 git branch 查看分支 git pull 拉取最新 ...
分类:
其他好文 时间:
2019-11-14 22:09:37
阅读次数:
51
https://zhuanlan.zhihu.com/p/40054117 设计思路1) 优先级--针对所有接口1、暴露在外面的接口,因为通常该接口会给第三方调用;2、供系统内部调用的核心功能接口;3、供系统内部调用非核心功能接口;2) 优先级--针对单个接口1、正向用例优先测试,逆向用例次之(通常 ...
分类:
其他好文 时间:
2019-11-14 18:29:16
阅读次数:
89
一般处理程序处理跨域 context.Response.AddHeader("Access-Control-Allow-Origin", "*"); context.Response.AddHeader("Access-Control-Allow-Methods", "GET, POST, PUT, ...
分类:
其他好文 时间:
2019-11-14 10:06:46
阅读次数:
92
git pull git pull origin master git pull origin master --allow-unrelated-histories git branch --set-upstream-to=origin/master master ...
分类:
其他好文 时间:
2019-11-14 10:05:34
阅读次数:
68
在 vue.config.js中 配置路径缩写 chainWebpack: config => { config.resolve.alias .set('@views', resolve('src/views')) .set('@styles', resolve('src/styles')) .se ...
分类:
其他好文 时间:
2019-11-13 16:41:03
阅读次数:
119