使用的是angular-file-uploadangular頁(yè)面將圖片上傳到圖片服務(wù)器,出現(xiàn)了跨域問(wèn)題XMLHttpRequest cannot load http://upload.1-1dr.com/fileupload. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://dev.1-1dr.com' is therefore not allowed access.按照CORS的解決方法,服務(wù)器端響應(yīng)添加了Access-Control-Allow-Origin頭,但問(wèn)題還是沒(méi)解決。想問(wèn),是不是angular在上傳文件的請(qǐng)求中,也需要帶一些參數(shù),才能解決跨域問(wèn)題?
Angular 文件上傳跨域問(wèn)題?
翻閱古今
2018-10-10 13:15:23
