Hi, I’m looking to modify some LD in my profile as a learning exercise, does anyone know the required fetch api request headers I need to add to my JS call to make it work from my local non-pod web server page where I am already successfully logged in?
The fomat i’m looking to use is…
fetch(“https://someone.inrupt.net/profile/card#me”, {
method: “patch”,
headers: {
“Content-Type”: “application/sparql-update”,
// ?
},
// ?
credentials: “include”,
// ?
body: “DELETE DATA { https://someone.inrupt.net/profile/card#me http://www.w3.org/2006/vcard/ns#role “Clown” . } ; INSERT DATA { https://someone.inrupt.net/profile/card#me http://www.w3.org/2006/vcard/ns#role “Juggler” . }”,
})