http://aabb:8088/Customer/index 請求 http://aabb:8088/Service/$.ajax({ url:'http://aabb:8088/Service/', type:'GET', success:function(data){ console.log(data) }})XMLHttpRequest cannot load http://aabb:8088/Service/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://aabb:8088' is therefore not allowed access.請求的url換成/Service/就正常了,請問這是為什么?
ajax fetch獲取不到數據提示需要跨域(肯定沒有跨域)
慕桂英546537
2018-12-13 18:14:06