We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题描述:
http:127.0.0.1:8088
https://www.xxx.com/api/v1
package.json dev 配置: "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
proxyTable: { '/api/v1': { // target: 'https://www.xxx.com/', changeOrigin: true, secure: false, }, },
data: {detail: "CSRF Failed: Referer checking failed - Referer is insecure while host is secure."}
package.json dev 配置: 添加https,浏览器访问:https:127.0.0.1:8088 即可 "dev": "webpack-dev-server --inline --https --progress --config build/webpack.dev.conf.js",
How to run Vue.js dev serve with https? https://stackoverflow.com/questions/18642828/origin-http-localhost3000-is-not-allowed-by-access-control-allow-origin https://stackoverflow.com/questions/45807049/how-to-run-vue-js-dev-serve-with-https 中包含了 vue-cli3的解决方案。
Bug:
detail: "CSRF Failed: Referer checking failed - https://127.0.0.1:8088/ does not match any trusted origins."
需要后端修改验证规则(Django):
CSRF_TRUSTED_ORIGINS = [ # may have to include host AND port '127.0.0.1', '127.0.0.1:8088', ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
npm http-proxy 启用 https 的方式:
问题描述:
http:127.0.0.1:8088
-> Serverhttps://www.xxx.com/api/v1
附送另外一个Bug:
Bug:
需要后端修改验证规则(Django):
The text was updated successfully, but these errors were encountered: