ITeye博客

2020 年文章归档

共 3 篇文章

nginx配置跨域请求

location / { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; if ($request_method = '…

2020-12-28 15:40 · Android · cordova · ios · nginx

mac 安装homebrew

转 官网:https://brew.sh/index_zh-cn 安装命令: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 安装错误:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 原因:由于某些你懂的因素,导致GitHub的raw.githubusercontent.com域名解析被污染了。 解决办法:通过修改hosts…

2020-11-10 17:15 · ios · mac

MAC修改系统文件没权限

启动按住Command+R两个按键进入恢复模式, 找到Terminal执行命令csrutil disable,关闭Rootless策略,重启电脑. 关闭命令:csrutil enable。

2020-11-04 09:48 · mac