Prima del salvataggio USER
This commit is contained in:
13
tools/tools.js
Normal file
13
tools/tools.js
Normal file
@@ -0,0 +1,13 @@
|
||||
var sendRequest = function (url, method, body)
|
||||
{
|
||||
const options = {
|
||||
method: method,
|
||||
mode: 'no-cors',
|
||||
headers: new Headers({'content-type': 'application/json'}),
|
||||
mode: 'no-cors'
|
||||
};
|
||||
|
||||
options.body = JSON.stringify(body);
|
||||
|
||||
return fetch(url, options);
|
||||
}();
|
||||
Reference in New Issue
Block a user