solid-panes icon indicating copy to clipboard operation
solid-panes copied to clipboard

Attempting to update sharing for Trusted Apps errors

Open brownhoward opened this issue 6 years ago • 1 comments

When attempting to update the sharing permissions for Trusted Apps on a folder generates a CORS error:

Access to fetch at 'https://generator.inrupt.com/' from origin 'https://suser.solid.community' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

To Replicate:

  1. Navigate to a resource in a Pod.
  2. Display the Sharing view.
  3. Click green +.
  4. Select Trusted Apps to display the sharing permissions for your Trusted Apps.
  5. Attempt to give/remove access to the resource for any of the Trusted Apps.

brownhoward avatar Oct 11 '19 17:10 brownhoward

@kevin-howard-jd it's trying to display the icon for https://generator.inrupt.com. That should have CORS headers on it. Notice the lack of cors headers here:

 curl -I https://generator.inrupt.com
HTTP/1.1 200 OK
Server: openresty/1.13.6.2
Date: Fri, 20 Dec 2019 10:20:55 GMT
Content-Type: text/html
Content-Length: 2273
Connection: keep-alive
x-amz-id-2: XeSJI6buqj6B+gjYJe1nkGU/6crr8ahNSmElgUoFE24pnrkMVGonKwgRzyZ1LQ2vq0U6PnsTj2k=
x-amz-request-id: C3C32C2FE814DC7D
Last-Modified: Wed, 18 Dec 2019 18:54:33 GMT
ETag: "d1dd4add1fdb857da59ae4f2c16b55e3"
Accept-Ranges: bytes

michielbdejong avatar Dec 20 '19 10:12 michielbdejong