Access to fetch at 'https://grafana.com/blog/news.xml' blocked by CORS policy

with the new grafana images(image: grafana/grafana),and encounter problem。
website->proxy(iptables forward)->grafana,it will failed with

Access to fetch at ‘https ://grafana.com/blog/news.xml’ from origin ‘http://xxx:3000’ has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local.
rss.ts:4 GET https ://grafana.com/blog/news.xml net::ERR_FAILED
(anonymous) @ rss.ts:4
loadChannel @ NewsPanel.tsx:50
componentDidMount @ NewsPanel.tsx:33
pa @ react-dom.production.min.js:219
Au @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
Cu @ react-dom.production.min.js:252
mu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
$o @ react-dom.production.min.js:123
Wo @ react-dom.production.min.js:122
vu @ react-dom.production.min.js:244
notify @ Subscription.js:15
notifyNestedSubs @ Subscription.js:85
o @ Subscription.js:90
y @ redux.js:296
(anonymous) @ index.js:11
dispatch @ redux.js:659
(anonymous) @ actions.ts:142
async function (async)
(anonymous) @ actions.ts:131
(anonymous) @ index.js:8
n. @ bindActionCreators.js:9
componentDidMount @ DashboardPanel.tsx:60
pa @ react-dom.production.min.js:219
Au @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
Cu @ react-dom.production.min.js:252
mu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
$o @ react-dom.production.min.js:123
Wo @ react-dom.production.min.js:122
vu @ react-dom.production.min.js:244
notify @ Subscription.js:15
notifyNestedSubs @ Subscription.js:85
o @ Subscription.js:90
y @ redux.js:296
(anonymous) @ index.js:11
dispatch @ redux.js:659
(anonymous) @ initDashboard.ts:214
async function (async)
(anonymous) @ initDashboard.ts:121
(anonymous) @ index.js:8
n. @ bindActionCreators.js:9
initDashboard @ DashboardPage.tsx:123
componentDidMount @ DashboardPage.tsx:103
pa @ react-dom.production.min.js:219
Au @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
Cu @ react-dom.production.min.js:252
mu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
$o @ react-dom.production.min.js:123
Wo @ react-dom.production.min.js:122
cu @ react-dom.production.min.js:237
enqueueSetState @ react-dom.production.min.js:133
v.setState @ react.production.min.js:12
t @ index.js:205
(anonymous) @ index.js:215
Promise.then (async)
n._loadModule @ index.js:214
n.componentWillMount @ index.js:168
gi @ react-dom.production.min.js:138
zs @ react-dom.production.min.js:181
Va @ react-dom.production.min.js:269
Su @ react-dom.production.min.js:250
ku @ react-dom.production.min.js:250
xu @ react-dom.production.min.js:250
mu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Ho @ react-dom.production.min.js:122
$o @ react-dom.production.min.js:123
Wo @ react-dom.production.min.js:122
yu @ react-dom.production.min.js:244
nl @ react-dom.production.min.js:289
t.render @ react-dom.production.min.js:296
(anonymous) @ app.ts:116
Promise.then (async)
init @ app.ts:115
./public/app/index.ts @ index.ts:20
l @ bootstrap:19
(anonymous) @ app.f173e95646339d94c42a.js:1
l.O @ chunk loaded:23
(anonymous) @ app.f173e95646339d94c42a.js:1
t @ jsonp chunk loading:71
(anonymous) @ app.f173e95646339d94c42a.js:1
NewsPanel.tsx:57 Error Loading News TypeError: Failed to fetch
at rss.ts:4
at So.loadChannel (NewsPanel.tsx:50)
at So.componentDidMount (NewsPanel.tsx:33)
at pa (react-dom.production.min.js:219)
at Au (react-dom.production.min.js:259)
at t.unstable_runWithPriority (scheduler.production.min.js:18)
at Ho (react-dom.production.min.js:122)
at Cu (react-dom.production.min.js:252)
at mu (react-dom.production.min.js:243)
at react-dom.production.min.js:123
loadChannel @ NewsPanel.tsx:57

if no proxy(website->grafana), it will be ok.so I had changed iptables forward to nginx reverse proxy,it failed again。

Hi @chllcy

I think this is a limitation with the news panel right now, for security reasons. See this comment for a possible workaround:

and you should consider upvoting this feature request:

This topic was automatically closed after 365 days. New replies are no longer allowed.