Merge "Add CORS support to upload-logs-swift"

This commit is contained in:
Zuul 2019-08-02 16:59:15 +00:00 committed by Gerrit Code Review
commit 41d06378b0
1 changed files with 2 additions and 1 deletions

View File

@ -490,7 +490,8 @@ class Uploader():
self.cloud.create_container(name=self.container, public=public)
self.cloud.update_container(
name=self.container,
headers={'X-Container-Meta-Web-Index': 'index.html'})
headers={'X-Container-Meta-Web-Index': 'index.html',
'X-Container-Meta-Access-Control-Allow-Origin': '*'})
# 'X-Container-Meta-Web-Listings': 'true'
# The ceph radosgw swift implementation requires an