报错锦集
cjh_hit
哈尔滨工业大学(威海) 计算机学院18级本科生
展开
-
gplearn出现 assignment destination is read-only
gplearn assignment destination is read-only原创 2022-06-20 11:29:56 · 615 阅读 · 1 评论 -
Django+axios 前后端分离 跨域 取不到cookie和session的问题
问题背景 :使用Django3.2开发后端,vue开发前端,前后端部署到不同的服务器上。后端配置django-cors-headers解决跨域问题后,发现无法正确使用session,前端无法在cookie中保存sessionid。浏览器是Chrome在前端设置:axios.defaults.withCredentials = true后,仍然无效.后来在开发者工具中,看到下面的警告,意思是想要设置cookie,需要把SameSite设置为None(Chrome浏览器默认是Lax)设置方法是在Dj原创 2021-08-15 02:21:02 · 1351 阅读 · 0 评论 -
Python pip报错:Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pipenv
前天用pip安装包的时候,突然报了如下错误:Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pipenv/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.tuna.tsinghua.edu.cn’, port=443): Max retries exceeded with url: /simple/pipenv原创 2020-08-05 10:13:28 · 3685 阅读 · 5 评论