Closed xoraingroup closed 8 months ago
- For some weird reason it shows NA
The version is only available if you use the pre-built binaries. If you compile it on your own, no version information is embedded in the output. If you were using the pre-built binary and still didn't, get any version details, you might be running into the bug reported in https://github.com/tus/tusd/issues/1045 and fixed in the latest v2.2.1 release.
I am not able to get those headers. Am I doing it all wrong? Please help. Thank you
I am not able to reproduce this. Running tusd via tusd -cors-allow-headers x-token -cors-expose-headers x-token
, the response from curl incluses the header:
~ $ curl -X OPTIONS -i http://[::]:8080/files/ -H "Origin: example.com"
HTTP/1.1 200 OK
Access-Control-Allow-Headers: Authorization, Origin, X-Requested-With, X-Request-ID, X-HTTP-Method-Override, Content-Type, Upload-Length, Upload-Offset, Tus-Resumable, Upload-Metadata, Upload-Defer-Length, Upload-Concat, Upload-Complete, Upload-Draft-Interop-Version, x-token
Access-Control-Allow-Methods: POST, HEAD, PATCH, OPTIONS, GET, DELETE
Access-Control-Allow-Origin: example.com
Access-Control-Max-Age: 86400
Tus-Extension: creation,creation-with-upload,termination,concatenation,creation-defer-length
Tus-Resumable: 1.0.0
Tus-Version: 1.0.0
Vary: Origin
X-Content-Type-Options: nosniff
Date: Mon, 08 Jan 2024 14:18:12 GMT
Content-Length: 0
In Firefox, I can also see the value in the preflight response:
I am closing this since I assume that the question has been answered. Feel free to continue here if that's not the case.
Question I have tried to expose x-token using -cors-allow-headers x-token -cors-expose-headers x-token , but I am not able to get it in pre-flight response header.
Tried all possible combinations and used following branches and tags
main branch v2.2.0 v2.2.1
I am not able to get those headers. Am I doing it all wrong? Please help. Thank you
Setup details Please provide following details, if applicable to your situation:
Linux
tusd -version
] For some weird reason it shows NALast commit of the main branch is
Used tusd data storage: [e.g. disk store, AWS S3, Google Cloud Storage] Minio Storage S3
Used tusd configuration: [what arguments are you using to invoke
tusd
?]Used tus client library: [e.g. tus-js-client, tus-java-client, TUSKit, Uppy.js] Uppy.js