You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Abridged from 2/5/25 Slack thread - Matt & Robyn)
(MBJ) We had a user report trouble getting to PNDB data files for this PNDB dataset, and sure enough, when I try to access the landing page I see a bunch of CORS errors for PNDB, KNB, ARCTIC and other nodes in the console. Screenshot below.
(RTB) The issue is with the CORS config on the PNDB server. CORS restrictions don't apply to direct requests for a resource, e.g. navigating to the resource map directly in your browser. You can see this for yourself with curl:
curl -i -X GET "https://pndb.fr/metacat/d1/mn/v2/object/resource_map_urn:uuid:2d9baf2c-62c8-41b2-9178-dd68af3b3379" \
-H "Origin: https://dataone.org/"
See values already tried, in helm/examples/values-dev-cluster-arctic-example.yaml in branch feature-2050-cors-k8s-ingress. Retry after nginx is upgraded to latest
NOTES
Here's what we have in the Apache setup for ADC, for reference:
Header always append X-Frame-Options SAMEORIGIN
SetEnvIf Origin "^(.*)$" ORIGIN_DOMAIN=$1
#RequestHeader set Expect "100-continue"Header set Access-Control-Allow-Origin "%{ORIGIN_DOMAIN}e" env=ORIGIN_DOMAIN
Header set Access-Control-Allow-Headers "Authorization, Content-Type, Origin, Cache-Control"Header set Access-Control-Allow-Methods "GET, POST, PUT, OPTIONS"Header set Access-Control-Allow-Credentials "true"
However, nginx doesn't like to support wildcard values for Access-Control-Allow-Origin at the same time Access-Control-Allow-Credentials is being used (which is why it works only when you aren't logged in).
We need to allow MetacatUI instances to have hostnames that do not match the corresponding metacat installation's hostname.
See backend meeting discussion 1/21/25.
Example Use Case
The text was updated successfully, but these errors were encountered: