在item列表里创建不了商品,我检查了下itemcontroller上面加了跨域注解
@CrossOrigin(origins = {"*"},allowCredentials = "true")
,HTML里面也写了xhrFields:{withCredentials:true},然后还是报下面问题,有没有大佬能帮忙解决一下
@CrossOrigin(allowedHeaders = "true",allowCredentials = "true")试试这个