2016-08-16 41 views
1

當我嘗試將$ http.post發送到php文件時,控制檯中出現404錯誤。 我已經在php文件中添加了這兩行,但它仍然無效。在Chrome中,Post請求正常工作。在Firefox上的角度發佈請求404

header("Access-Control-Allow-Origin: *"); 
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept"); 
+0

可能是一個壞的證書http://stackoverflow.com/questions/24371734/firefox-cors-request-giving-cross-origin-request-blocked雖然依然報頭?RQ = 1 – dave

回答