Commit 8a29311c authored by 郭志伟's avatar 郭志伟

fix: 关闭跨域检测

parent 49744e82
...@@ -42,6 +42,10 @@ export default (appInfo: EggAppConfig) => { ...@@ -42,6 +42,10 @@ export default (appInfo: EggAppConfig) => {
origin: '*', origin: '*',
allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH' allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH'
}; };
config.security = {
xframe: {
enable: false
}
};
return config; return config;
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment