0
votes

Trying to get icons from object storage and getting;

Access to Font at 'http://****.http.dal05.cdn.softlayer.net/**********' from origin 'http://localhost:3034' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3034' is therefore not allowed access.

I guess it should be fixed on SO side but have no idea where to look?

2
ok, I saw only one 'swift' in tag list so just picked it up. - Sarkis Arutiunian

2 Answers

0
votes

SL Object Storage only support CORS on containers and not individual objects. The following headers should be supported:

X-Container-Meta-Access-Control-Allow-Origin Origins to be allowed to make Cross Origin Requests, space separated.

X-Container-Meta-Access-Control-Max-Age Max age for the Origin to hold the preflight results.

X-Container-Meta-Access-Control-Expose-Headers

Regards

0
votes

Object Storage also uses standard S3 API, this answer show you how to do that using Object Storage S3 API.