2017-04-13 34 views
0

試圖從對象存儲中獲取圖標並獲取;如何在SoftLayer對象存儲中啓用CORS?

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.

我想這應該是固定的SO的一面,但不知道去哪裏找?

+0

好的,我只在標籤列表中看到一個'swift',所以就把它拿起來了。 –

回答

0

SL對象存儲只支持容器上的CORS而不支持單個對象。應支持以下標題:

X-Container-Meta-Access-Control-Allow-Origin 允許創建跨源請求的起點,空格分隔。

X-Container-Meta-Access-Control-Max-Age Origin用於保存預檢結果的最大時限。

X-集裝箱-元訪問控制展露報頭

問候

+0

以及我應該如何允許它在對象存儲中?這個問題,我剛纔問tech.support,他們不知道 –

相關問題