How to change the Sharing settings for a resource?

Can you help me again? I’ve got the ACL for /inbox/.acl:

@prefix : <#>.
@prefix n0: <http://www.w3.org/ns/auth/acl#>.
@prefix inbox: <./>.
@prefix c: </profile/card#>.

:ControlReadWrite
    n0:accessTo inbox:;
    n0:agent c:me, <mailto:jw@elfisk.dk>;
    n0:origin <http://elfisk.dk>;
    n0:defaultForNew inbox:;
    n0:mode n0:Control, n0:Read, n0:Write;
    a n0:Authorization.
:Read
    n0:accessTo inbox:;
    n0:defaultForNew inbox:;
    n0:mode n0:Read;
    a n0:Authorization.
:ReadWrite
    n0:accessTo inbox:;
    n0:defaultForNew inbox:;
    n0:mode n0:Read, n0:Write;
    a n0:Authorization.

I can see the agent “c:me” (my WebID) has Control, Read and Write access.

Now I want to grant access to the origin http://elfisk.dk which is the Origin header I can see in Fiddler. As you can see above I’ve tried n0:origin <http://elfisk.dk> - but without luck - the server returns “Not authorized”.

I have also tried n0:trustedOrigin <http://elfisk.dk> without luck.

The server has accepted my change: if I reload the .acl page I can se my changes.

If I try the exact same request, through Fiddler, without the “Origin” header, it returns 200-OK with the inbox data.

I’m trying to go through https://www.w3.org/wiki/WebAccessControl to understand what is going on. But apparently missing something.

Do you know what I am supposed to do?

1 Like