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 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
exports.cors = { enable: true, package: 'egg-cors', };
exports.origin = { enable: true, package: 'egg-origin', };
config.origin = { whiteList: [ 'http://admin.dirtypool.top', 'http://blog.dirtypool.top' ], };
config.security = { csrf: { enable: false, }, domainWhiteList: ['*'], };
config.cors = { // 跨域带Cookie Origin不能为* origin: [], credentials: true, // 允许Cookie跨域 allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS', };
The text was updated successfully, but these errors were encountered:
现在的egg-cors已经有白名单了,直接用domainwhite,不用Origin了
Sorry, something went wrong.
No branches or pull requests
exports.cors = {
enable: true,
package: 'egg-cors',
};
exports.origin = {
enable: true,
package: 'egg-origin',
};
config.origin = {
whiteList: [ 'http://admin.dirtypool.top', 'http://blog.dirtypool.top' ],
};
config.security = {
csrf: {
enable: false,
},
domainWhiteList: ['*'],
};
config.cors = {
// 跨域带Cookie Origin不能为*
origin: [],
credentials: true, // 允许Cookie跨域
allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS',
};
The text was updated successfully, but these errors were encountered: