Closed pheyvaer closed 2 years ago
canWriteToResource(resource)
canReadResource(resource)
canControlResource(resource)
I did the following in an app:
async function canWriteToResource(resource, solidFetch) { const response = await solidFetch(resource, { method: 'HEAD' }); const header = response.headers.get('wac-allow'); if (header) { return header.includes('write'); } return false; }
Just https://solidproject.org/TR/wac#wac-allow and https://github.com/RubenVerborgh/wac-allow? I.e., I think it's a pure development issue, and libraries already exist.
Sweet! This works for me.
Pitch
Desired solution
canWriteToResource(resource)
canReadResource(resource)
canControlResource(resource)
Acceptance criteria
Pointers
I did the following in an app: