mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Add cors headers. Updated fetch.
This commit is contained in:
parent
70a239b0dc
commit
631d124a61
6 changed files with 39 additions and 3 deletions
|
|
@ -14,7 +14,10 @@ const {
|
|||
function post(url, params) {
|
||||
return fetch(url, {
|
||||
method: 'post',
|
||||
mode: 'no-cors',
|
||||
cache: 'no-cache',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(params),
|
||||
}).then(res => res.json());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue