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
Hi,
We're developing an admin UI that allows us to manage both the EDC Connector (assets, policies, contracts, etc.) and the Identity Hub. For the EDC Connector, we configured the following environment variables to enable CORS:
This works well, and CORS is functioning as expected.
We applied a similar setup for the Identity Hub. We've added the CORS configuration, also the super-user seed extension, configured the API key using EDC_IH_API_SUPERUSER_KEY, and we’re able to make requests from Postman and curl successfully.
However, when making requests from the UI (running at http://192.168.1.27), the CORS preflight request (OPTIONS) fails with a 401 Unauthorized, likely because it doesn't include the X-API-Key header. This causes the Identity Hub to reject the preflight before the actual request can be made.
Our question is:
Is there a way to configure the Identity Hub to allow unauthenticated OPTIONS requests (i.e., bypass authentication for preflight), or to support direct browser connectivity without needing an intermediary proxy? What is your recommendation?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We're developing an admin UI that allows us to manage both the EDC Connector (assets, policies, contracts, etc.) and the Identity Hub. For the EDC Connector, we configured the following environment variables to enable CORS:
This works well, and CORS is functioning as expected.
We applied a similar setup for the Identity Hub. We've added the CORS configuration, also the super-user seed extension, configured the API key using EDC_IH_API_SUPERUSER_KEY, and we’re able to make requests from Postman and curl successfully.
However, when making requests from the UI (running at http://192.168.1.27), the CORS preflight request (OPTIONS) fails with a 401 Unauthorized, likely because it doesn't include the X-API-Key header. This causes the Identity Hub to reject the preflight before the actual request can be made.
Our question is:
Is there a way to configure the Identity Hub to allow unauthenticated OPTIONS requests (i.e., bypass authentication for preflight), or to support direct browser connectivity without needing an intermediary proxy? What is your recommendation?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions