Nginx跨域处理
1:nginx服务端配置:
方便复制:
#add_header ‘Access-Control-Allow-Origin’ ‘$http_origin’;
#add_header ‘Access-Control-Allow-Credentials’ ‘true’;[……]
1:nginx服务端配置:
方便复制:
#add_header ‘Access-Control-Allow-Origin’ ‘$http_origin’;
#add_header ‘Access-Control-Allow-Credentials’ ‘true’;[……]
1:laravel中可以通过$request->ip()获取到ip.
2:通过第三方包: https://learnku.com/laravel/t/2537/extended-recommendation-geoip-get-ip-geographic-information
compo[......]
环境: centos 6.9
1: 找到一个目录: 执行:wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz
2: 执行解压: tar xv[……]