When I call /api/admin/datasetfield/load I get the following message:
Endpoint available from localhost only. Please contact the dataverse administrator
What should I set to solve this?
You could try setting an unblock key: https://github.com/IQSS/dataverse/commit/89739bc39542930546c807c2236033b7da790688
Mohsen Jafari has marked this topic as resolved.
We used this link to solve the issue:
https://github.com/IQSS/dataverse-docker/issues/29
Huh, "allow" isn't even documented as an option: https://guides.dataverse.org/en/6.1/installation/config.html#blockedapipolicy
Huh, but "allow" is an option in the code: https://github.com/IQSS/dataverse/blob/v6.1/src/main/java/edu/harvard/iq/dataverse/api/ApiBlockingFilter.java#L126
This makes me nervous. Please make sure you're aware of the dangers of having endpoints like "/api/admin" unblocked: https://guides.dataverse.org/en/6.1/installation/config.html#blocking-api-endpoints
Last updated: Oct 30 2025 at 06:21 UTC