Files
esercizi-web/script.js
2026-02-12 18:36:35 +01:00

17 lines
236 B
JavaScript

let opzioni = {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"username": "admin",
"password": "admin"
})
}
let res = await fetch(url, opzioni);