浏览代码

去掉调试时加的跨域设置

lijie 3 年之前
父节点
当前提交
a6d5239ad5

+ 0 - 3
dmp-cloud/dmp-file/src/main/java/com/persagy/dmp/file/controller/CompatibleOldFileController.java

@@ -257,7 +257,6 @@ public class CompatibleOldFileController {
      */
     @PostMapping(value = "/common/register_multipart_upload")
     @ResponseBody
-    @CrossOrigin(origins = "*",allowedHeaders = "*",allowCredentials = "true",methods = {RequestMethod.POST,RequestMethod.GET})
     public String registerMultipartUpload() {
         if (StrUtil.isBlank(OldFileAppContext.getContext().getSystemId())
             || StrUtil.isBlank(OldFileAppContext.getContext().getKey())){
@@ -288,7 +287,6 @@ public class CompatibleOldFileController {
     @SneakyThrows
     @RequestMapping(value = "/common/multipart_upload",consumes = {MediaType.MULTIPART_FORM_DATA})
     @ResponseBody
-    @CrossOrigin(value = "*", origins = "*",allowedHeaders = "*",allowCredentials = "true",methods = {RequestMethod.POST,RequestMethod.GET})
     public String multipartUpload(@RequestParam(value = "file",required = false) MultipartFile file,
                                   @RequestParam(value = "uploadId",required = false) String uploadId,
                                   @RequestParam(value = "chunkNumber",required = false) Integer chunkNumber,
@@ -352,7 +350,6 @@ public class CompatibleOldFileController {
     @SneakyThrows
     @RequestMapping(value = "/common/merge_multipart")
     @ResponseBody
-    @CrossOrigin(origins = "*",allowedHeaders = "*",allowCredentials = "true",methods = {RequestMethod.POST,RequestMethod.GET})
     public String mergeMultipart() {
         if (StrUtil.isBlank(OldFileAppContext.getContext().getUploadId())){
             return INCORRECT_PARAMETERS;