用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
1.对所有索引去只读 curl -XPUT -H 'Content-Type: application/json' http://192.168.1.156:9200/_settings -d ' { "index": { "blocks": { "read_only_allow_delete": ...
分类:
其他好文 时间:
2020-01-12 13:39:57
阅读次数:
79
Nginx访问控制 基于IP的访问控制 - http_access_module 基于用户的信任登录 - http_auth_basic_module #语法1(允许那些IP可以访问) Syntax:allow address | CIDR | unix: | allk; Default:—— Co ...
分类:
其他好文 时间:
2020-01-08 10:46:40
阅读次数:
93
Access-Control-Allow-Origin为*的时候,前端设置withCredentials:true,将不能发送cookie到服务端。 此外,前端要发送cookie到服务端,还要 XMLHttpRequest 的 withCredentials 标志设置为 true,且 服务器端的响应 ...
分类:
数据库 时间:
2020-01-06 12:53:03
阅读次数:
279
在后面加多:encoding='utf-8'2Yaml读写: import yamldef main(): #读写解决中文:encoding='utf-8',allow_unicode=True data = {"GGG":{"kk":{"你好":["7","9"]}}} #生成text.yaml路 ...
分类:
编程语言 时间:
2020-01-05 00:26:52
阅读次数:
253
{ "Statement": [ { "Action": "dms:LoginDatabase", "Effect": "Allow", "Resource": "acs:rds:*:*:dbinstance/次处填是实例id" } ], "Version": "1" } { "Statement" ...
分类:
其他好文 时间:
2020-01-04 18:54:57
阅读次数:
176