问题简述: 使用servlet与vue-axios进行前后端交互时,设置好了跨域,其后因考虑到用户验证问题,在前端请求时加入了请求头如下 axios.defaults.headers.common['token'] = sessionStorage.getItem("token"); 其后,浏览器便 ...
分类:
移动开发 时间:
2020-01-02 22:42:20
阅读次数:
217
背景: 最近 开发中遇到新需求,把公司的OA系统迁移一套到小程序上面去 有些功能的信息是在小程序 查看 但是文件是在pc端上传的 例如:领导在外出办公 使用小程序查看xxxx.pdf文件 这个时候就遇到问题了, pc端的部署和小程序的部署不是在同一台服务器上。 在pc端上传文件想要小程序看的话 心中 ...
分类:
数据库 时间:
2020-01-02 15:41:58
阅读次数:
123
1、配置方式 /etc/hosts.allow mountd:192.168.131.1 #cent7.0设置方式Portmap:192.168.131.1:allow #cent6.0设置方式 /etc/hosts.deny mountd:all #cent7.0设置方式Portmap:ALL:d ...
分类:
系统相关 时间:
2020-01-02 15:24:26
阅读次数:
1896
我们在前端使用代理请求时,要先设置服务器允许跨域请求,下面先来介绍几个常用的配置 (1)Access-Control-Allow-Origin 该字段是必须的。它的值要么是请求时Origin字段的值,要么是一个*,表示接受任意域名的请求。 (2)Access-Control-Allow-Creden ...
分类:
Web程序 时间:
2019-12-31 12:46:47
阅读次数:
102
当你在服务器外部或另一个服务器中向当前服务器中发送部分请求时,如Ajax请求,会受到浏览器同源策略的限制,No 'Access-Control-Allow-Origin' header is present on the requested resource',解决方法如下: @RequestMap ...
分类:
其他好文 时间:
2019-12-30 17:12:45
阅读次数:
71
每日更新的list 英文版本 https://peter.sh/experiments/chromium-command-line-switches/ 1 --allow-outdated-plugins 不停用过期的插件。2 --allow-running-insecure-content 默认情 ...
分类:
其他好文 时间:
2019-12-30 00:22:50
阅读次数:
341
1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 5 # 构建数据 6 def build_data(): 7 res = np.load("./国民经济核算季度数据.npz", allow_pickle=True) 8 colum ...
分类:
其他好文 时间:
2019-12-29 20:41:36
阅读次数:
299
Generators allow you to use the yield * syntax to yield each iteration of nested iterable as part of the main iterations. This enables you to combine ...
分类:
编程语言 时间:
2019-12-29 15:17:46
阅读次数:
87
-- 进入maser数据库 USE masterGO -- 启用系统表更新sp_configure 'allow updates', 1GORECONFIGURE WITH OVERRIDEGO -- 关闭 c_nzz 数据库的置疑标志sp_resetstatus c_nzzGO -- sp_res ...
分类:
数据库 时间:
2019-12-25 13:12:33
阅读次数:
113
一、添加和root权限一样的用户 1、 adduser admin passwd admin (修改密码) 2、修改 /etc/sudoers 文件,找到下面一行,在root下面添加一行,如下所示 vim /etc/sudoers ## Allow root to run any commands ...
分类:
系统相关 时间:
2019-12-23 19:16:19
阅读次数:
132