rclone/fs/rc
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
..
jobs cache: fix backends shutting down when in use when used via the rc 2023-06-13 15:48:20 +01:00
js WASM: comply with wasm_exec.js licence terms 2022-12-07 15:25:46 +00:00
rcflags http servers: allow CORS to be set with --allow-origin flag - fixes #5078 2023-07-26 10:15:54 +01:00
rcserver http servers: allow CORS to be set with --allow-origin flag - fixes #5078 2023-07-26 10:15:54 +01:00
webgui webgui: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
cache.go rc: allow fs= params to be a JSON blob 2021-03-30 17:07:27 +01:00
cache_test.go mockfs: make it so it can be registered as an Fs 2023-04-28 14:31:05 +01:00
config.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
config_test.go rcd: refactor rclone rc server to use lib/http 2022-12-15 12:38:09 +00:00
internal.go build: update to go1.21rc3 and make go1.19 the minimum required version 2023-07-16 10:09:25 +01:00
internal_test.go rc: fix core/command giving 500 internal error - fixes #4914 2021-01-10 16:34:46 +00:00
params.go build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
params_test.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
rc.go http servers: allow CORS to be set with --allow-origin flag - fixes #5078 2023-07-26 10:15:54 +01:00
rc_test.go fs/rc: add more infrastructure to help writing rc functions 2018-11-02 17:32:20 +00:00
registry.go config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00