Revision history [back]

Hi SyCode7, I did manage to get around the issues, but it was so long ago and I haven't looked at our on-prem swift deployment in so longer that I've forgotten the details. Here is what I have in my notes that I added to /etc/swift/proxy-server.conf:

[filter:crossdomain] use = egg:swift#crossdomain cross_domain_policy = <allow-access-from domain="xxx.example.com" /> 

However, I do remember making some other changes to the actual buckets I needed to be able to access -- I think I did the following:

swift post xxxx --meta "Access-Control-Allow-Credentials: https://xxx.example.com" swift post xxxx --meta "X-Container-Meta-Access-Control-Allow-Origin: https://xxx.example.com" swift post xxxx --meta "Access-Control-Allow-Origin: https://xxx.example.com" swift post xxxx --meta "Access-Control-Allow-Headers: https://xxx.example.com" swift post xxxx --meta "Access-Control-Expose-Headers: https://xxx.example.com" 

What I don't remember is whether I had to patch any of the swift code. I'm sorry it's been too long since I worked on this. -- Eric

Hi SyCode7, I did manage to get around the issues, but it was so long ago and I haven't looked at our on-prem swift deployment in so longer that I've forgotten the details. Here is what I have in my notes that I added to /etc/swift/proxy-server.conf:

[filter:crossdomain]  [filter:crossdomain]

 use = egg:swift#crossdomain egg:swift#crossdomain 

cross_domain_policy = <allow-access-from domain="xxx.example.com" />  domain="xxx.example.com"/>

However, I do remember making some other changes to the actual buckets I needed to be able to access -- I think I did the following:

swift swift post xxxx --meta "Access-Control-Allow-Credentials: https://xxx.example.com" 

 swift post xxxx --meta "X-Container-Meta-Access-Control-Allow-Origin: https://xxx.example.com" https://xxx.example.com" swift post xxxx --meta "Access-Control-Allow-Origin: https://xxx.example.com" https://xxx.example.com" swift post xxxx --meta "Access-Control-Allow-Headers: https://xxx.example.com" https://xxx.example.com" 

swift post xxxx --meta "Access-Control-Expose-Headers: https://xxx.example.com" 

What I don't remember is whether I had to patch any of the swift code. I'm sorry it's been too long since I worked on this. -- Eric