前言 selenium进行自动化测试过程中,直接启动safari浏览器会报错"Could not create a session: You must enable the 'Allow Remote Automation' option in Safari's Develop menu to co ...
分类:
其他好文 时间:
2020-01-16 22:14:07
阅读次数:
438
1、安装选项不要回车,先按table键,在quite后面加入hpsa.hpsa_simple_mode=1hpsa.hpsa_allow_any=1按Ctrl+X或回车安装。2、安装完成后启动也是一样按table操作。3、永久生效vi//boot/grub2/grub.cfg找到“linux17”行加入hpsa.hpsa_simple_mode=1hpsa.hpsa_allow_any=1保存。
分类:
其他好文 时间:
2020-01-16 17:19:13
阅读次数:
509
多人协同开发 1、克隆分支 git clone -b dev1.0 url 2、创建并关联远程分支 git checkout -b dev_wt origin/dev_wt 情况一获取其它分支的代码,并合并 1、git pull origin dev_wt2.0 --allow-unrelated- ...
分类:
其他好文 时间:
2020-01-15 11:44:44
阅读次数:
77
今天搞了半天的跨域问题,想通过nginx配置跨域,希望以后本地调试程序都不用为这件事烦心。无非就是设置几个请求头: add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods *; add_hea ...
分类:
Web程序 时间:
2020-01-14 22:15:39
阅读次数:
390
vlan 2 vlan 3 用ACL来实现,具体如下:acl number 3002 rule deny ip source 192.168.1.0 0.0.0.255 destination 192.168.2.0 0.0.0.255 acl number 3003 rule deny ip so ...
分类:
其他好文 时间:
2020-01-14 16:36:05
阅读次数:
141
用http 访问 https域名, 报跨越问题 解决方法: 在nginx相应服务的转发配置下添加: add_header 'Access-Control-Allow-Origin' 'http://im.tinywan.com'; add_header 'Access-Control-Allow-H ...
分类:
Web程序 时间:
2020-01-14 16:19:45
阅读次数:
291
fiddler的使用 在使用火狐浏览器进行抓包,需要手动代理配置HTTP代理:172.0.0.1,端口号为8888 fiddler远程操作手机,手机需要更改WLAN→代理→手动→主机名(ip地址)→端口(8888),电脑需要修改tools→connections→选中allow remote com ...
分类:
其他好文 时间:
2020-01-14 12:53:41
阅读次数:
72
1、编写app.js文件 var express = require("express"); var app = express(); app.all("*", function(req, res, next) { res.header("Access-Control-Allow-Origin", ...
分类:
Web程序 时间:
2020-01-13 14:41:24
阅读次数:
106
String origin = filterContext.HttpContext.Request.Headers["Origin"]; filterContext.HttpContext.Response.AppendHeader("Access-Control-Allow-Origin", "* ...
分类:
Web程序 时间:
2020-01-13 13:16:47
阅读次数:
106
pip install django-cors-header MIDDLEWARE中添加到最前面 'corsheaders.middleware.CorsMiddleware', APP中添加 'corsheaders', 再 CORS_ORIGIN_ALLOW_ALL = True ...
分类:
其他好文 时间:
2020-01-12 15:18:54
阅读次数:
60