rclone/lib/http
yuudi 6c8148ef39
http servers: allow CORS to be set with --allow-origin flag - fixes #5078
Some changes about test cases:
Because MiddlewareCORS will return early on OPTIONS request,
this middleware should only be used once at NewServer function.
Test cases should pass AllowOrigin config instead of adding
this middleware again.

A new test case was added to test CORS preflight request with
an authenticator. Preflight request should always return 200 OK
regardless of autentications.

Co-authored-by: yuudi <yuudi@users.noreply.github.com>
2023-07-26 10:15:54 +01:00
..
serve lib/http: Simplify server.go to export an http server rather than an interface 2022-12-15 12:38:09 +00:00
templates serve http: support unix sockets and multiple listners 2022-12-15 12:38:09 +00:00
testdata http: add client certificate user auth middleware 2023-06-26 14:33:53 +01:00
auth_test.go cmd/rcd: Fix command docs to include command specific prefix (#6675) 2023-03-22 11:47:35 +00:00
auth.go http: add client certificate user auth middleware 2023-06-26 14:33:53 +01:00
context.go lib/http: fix race condition 2022-12-15 12:38:09 +00:00
middleware_test.go http servers: allow CORS to be set with --allow-origin flag - fixes #5078 2023-07-26 10:15:54 +01:00
middleware.go http servers: allow CORS to be set with --allow-origin flag - fixes #5078 2023-07-26 10:15:54 +01:00
server_test.go http servers: allow CORS to be set with --allow-origin flag - fixes #5078 2023-07-26 10:15:54 +01:00
server.go http servers: allow CORS to be set with --allow-origin flag - fixes #5078 2023-07-26 10:15:54 +01:00
template_test.go cmd/rcd: Fix command docs to include command specific prefix (#6675) 2023-03-22 11:47:35 +00:00
template.go cmd/rcd: Fix command docs to include command specific prefix (#6675) 2023-03-22 11:47:35 +00:00