Languages and Tools:
No Activity tracked this Week
base on dva react antd
谢谢你开源的项目.让我学习到了很多知识.
有点环境方面的问题,想请教你下,请指导. 谢谢.
我的项目环境与你相似,不同的是后端采用了yii2,前端也是antd.
请问,在开发环境下,前端登录后 php发送的setcookie的结果是否可以读取?
开发时前端地址是localhost:8989, 这个时候登录成功后 读取不到cookie.
我没有模拟线上环境. 但是开发的时候这个cookie读取不到, 不好确定这部分是否没问题.
不知道我描述的是否能够方便你理解. 自己也尝试调试了下, 但是因为开发环境是localhost, 但是后端发送的cookie,domain=xxx.xxx.xxxx 是不是因为这个原因呢? 但是我自己尝试将后端domain修改为localhost 但是getcookie还是无法读取cookie. 没办法了只好来问你. 谢谢.
看了您的文章让我学到了很多,这里有个疑惑,因为是用的token可以直接存在localstore里面,为什么要存在cookie里面?
修复方案:
cd app/Support
mv errcode.php ErrCode.php
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.