solid-panes
solid-panes copied to clipboard
Attempting to update sharing for Trusted Apps errors
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:
- Navigate to a resource in a Pod.
- Display the Sharing view.
- Click green +.
- Select Trusted Apps to display the sharing permissions for your Trusted Apps.
- Attempt to give/remove access to the resource for any of the Trusted Apps.
@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