rclone/fs/rc/rcserver
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
..
testdata http: improved directory listing with new template from Caddy project 2020-05-08 16:15:21 +01:00
rcserver_test.go http servers: allow CORS to be set with --allow-origin flag - fixes #5078 2023-07-26 10:15:54 +01:00
rcserver.go http servers: allow CORS to be set with --allow-origin flag - fixes #5078 2023-07-26 10:15:54 +01:00