| | |
| | | package com.zy.asrs.wcs.common.config; |
| | | |
| | | import com.zy.asrs.wcs.common.constant.Constants; |
| | | import com.zy.asrs.wcs.utils.Utils; |
| | | import com.zy.asrs.wcs.utils.CommonUtils; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.web.servlet.AsyncHandlerInterceptor; |
| | |
| | | return new AsyncHandlerInterceptor(){ |
| | | @Override |
| | | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { |
| | | Utils.cors(response); |
| | | CommonUtils.cors(response); |
| | | return true; |
| | | } |
| | | }; |