Front end:
vue + vue-router(html5 history api) + vue-cli
Backend:
yii2
When I first started, I accessed the built things (index.html and static) as static resources. But in this case, I have no way to generate cookies (such as csrf tokens) when accessing index.html. In this case, what strategy should I adopt to ensure that users can generate cookies on the backend and return them when they visit this page?
Front end:
vue + vue-router(html5 history api) + vue-cli
Backend:
yii2
When I first started, I accessed the built things (index.html and static) as static resources. But in this case, I have no way to generate cookies (such as csrf tokens) when accessing index.html. In this case, what strategy should I adopt to ensure that users can generate cookies on the backend and return them when they visit this page?
json web token