8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an i 7ABE ssue 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
//跨域配置 config.security = { csrf: { enable: false, // 前后端分离,post请求不方便携带_csrf ignoreJSON: true }, domainWhiteList: ['http://www.baidu.com', 'http://localhost:8080'], //配置白名单 };
config.cors = { // origin: '*', //允许所有跨域访问,注释掉则允许上面 白名单 访问 credentials: true, // 允许跨域请求携带cookies allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH' }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
//跨域配置
config.security = {
csrf: {
enable: false, // 前后端分离,post请求不方便携带_csrf
ignoreJSON: true
},
domainWhiteList: ['http://www.baidu.com', 'http://localhost:8080'], //配置白名单
};
config.cors = {
// origin: '*', //允许所有跨域访问,注释掉则允许上面 白名单 访问
credentials: true, // 允许跨域请求携带cookies
allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH'
}
The text was updated successfully, but these errors were encountered: