owncloud / owncloud/ocis

TUS misuse of OCIS_CORS_ALLOW_ORIGINS ?

Open
#10,031 1 comment 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Describe the bug
If you don't have the OCIS_URL in OCIS_CORS_ALLOW_ORIGINS, uploads bigger than the TUS chunk threshold (10MB) fail.

They fail because the storage-users service aborts the PATCH request of the first chunk with HTTP 403.

CORS is checked on the browser side and not the server side, so I expect a misusage of the CORS configuration here...

## Additional context

See also:
- https://github.com/owncloud/ocis-charts/pull/744
- https://github.com/owncloud/ocis-charts/issues/643

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.