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
Since this is a user-centric database, it is likely (design to be) used directly by some client, potentially from a browser. In that usecase, we need to support CORS to properly respond across domains.
RELEVANT ISSUE(S)
Resolves#408
DESCRIPTION
This PR adds CORS capability to the HTTP API. In situations where the database will be accessed from a different domain than that of the Defra host, the HTTP API needs to communicate to the browser the allowed origins and handle preflight requests.
RELEVANT ISSUE(S)
Resolvessourcenetwork#408
DESCRIPTION
This PR adds CORS capability to the HTTP API. In situations where the database will be accessed from a different domain than that of the Defra host, the HTTP API needs to communicate to the browser the allowed origins and handle preflight requests.
Since this is a user-centric database, it is likely (design to be) used directly by some client, potentially from a browser. In that usecase, we need to support CORS to properly respond across domains.
CORS Chi middleware: https://github.com/go-chi/cors
The text was updated successfully, but these errors were encountered: