javascript - How to fix "Failed to load resource: the server responded
https://stackoverflow.com/questions/56435467/how-to-fix-failed-to-load-resource-the-server-responded-with-a-status-of-400
WEBJun 4, 2019 · It turns out that the problem is with the cors mode. Either remove it or set it to 'cors'. await fetch('https://localhost:44385/api/PushNotification', {. method: 'POST', mode: 'cors', cache: 'no-cache', credentials: 'same-origin' , headers: {. 'content-type': 'application/json'.
DA: 56 PA: 66 MOZ Rank: 49