[Files] Make download route public (#163408)

## Summary

fix https://github.com/elastic/kibana/issues/163364 in serverless
Similar to https://github.com/elastic/kibana/pull/162707/, the the
endpoint is used by `<img src=""/>` and should work without any special
headers
This commit is contained in:
Anton Dosov 2023-08-08 16:47:48 +02:00 committed by GitHub
parent c13dcf47c5
commit 7025a7bdab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,7 @@ export function register(fileKindRouter: FileKindRouter, fileKind: FileKind) {
validate: { ...rt },
options: {
tags: fileKind.http.download.tags,
access: 'public', // the endpoint is used by <img src=""/> and should work without any special headers
},
},
handler