0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-23 22:27:35 -05:00
zot/pkg/extensions/search
Shivam Mishra b8010e1ee4 routes: changes required to do browser authentication
whenever we make a request that contains header apart from CORS allowed header, browser sends a preflight request
and in response accept *Access-Control-Allow-Headers*.

preflight request is in form of OPTIONS method, added new http handler func to set headers
and returns HTTP status ok in case of OPTIONS method.

in case of authorization, request contains authorization header
added authorization header in Access-Control-Allow-Headers list

added AllowOrigin field in HTTPConfig this field value is set to Access-Control-Allow-Origin header and will give zot adminstrator to limit incoming request.

Signed-off-by: Shivam Mishra <shimish2@cisco.com>
2022-03-08 17:42:54 -08:00
..
common test: use T.TempDir to create temporary test directory 2022-03-07 12:28:49 -08:00
cve routes: changes required to do browser authentication 2022-03-08 17:42:54 -08:00
digest test: use T.TempDir to create temporary test directory 2022-03-07 12:28:49 -08:00
generated.go search: graphql api to give detailed repo info 2022-02-10 16:34:13 -08:00
models_gen.go search: graphql api to give detailed repo info 2022-02-10 16:34:13 -08:00
resolver.go search: graphql api to give detailed repo info 2022-02-10 16:34:13 -08:00
schema.graphql search: graphql api to give detailed repo info 2022-02-10 16:34:13 -08:00