0
以下是我的預先要求。Aurelia Fetch CORS不適用於Chrome或Firefox的本地主機
我已經設置了訪問控制允許來源,但沒有瀏覽器就可以看到它,因此後續請求失敗
這是我則得到了失敗的請求
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/api/v1.0/currencies/2. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
你能告訴我們'fetch'代碼和'cors'代碼在哪裏設置標題? – Randy