商品服务-API-三级分类-删除
- 协议,域名,端口都要相同,否则产生跨域
- 预检请求 OPTIONS
- 实用ngix实现同一域或者自己允许跨域(向容器中注入CorsWebFilter)
- 注释掉脚手架自己的跨域配置
- vscode报错:You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.(在编写代码的时候不够规范化所导致的).解决办法:将config/index.js中的useEslint的值改为false.