JorrinKievit / react-ts-tradingview-widgets

This is a React component library for TradingView Widgets
https://tradingview-widgets.jorrinkievit.xyz/
MIT License
163 stars 50 forks source link

How react uses tradingview proxy #12

Closed OnlyDawn closed 2 years ago

OnlyDawn commented 2 years ago

Error handling response: Error: Blocked a frame with origin "https://s.tradingview.com" from accessing a cross-origin frame. at tryShowingMateBar (eval at success (chrome-extension://ihmgiclibbndffejedjimfjmfoabpcke/src/kernel/kernel.js:233:37), :5428:57) at eval (eval at success (chrome-extension://ihmgiclibbndffejedjimfjmfoabpcke/src/kernel/kernel.js:233:37), :153:17) at eval (eval at success (chrome-extension://ihmgiclibbndffejedjimfjmfoabpcke/src/kernel/kernel.js:233:37), :108:27) ?frameElementId=tradingview_41b54&symbol=AAPL&interval=D&hidetoptoolbar=1&hidesidetoolbar=0&symboledit=1&saveimage=0&toolbarbg=f1f3f6&studies=%5B%5D&theme=light&style=3&timezone=exchange&withdateranges=1&studies_overrides=%7B%7D&overrides=%7B%7D&enabled_features=%5B%5D&disabled_features=%5B%5D&locale=zh_CN&utm_source=localhost&utm_medium=widget&utm_campaign=chart&utm_term=AAPL:14 WebSocket connection to 'wss://widgetdata.tradingview.com/socket.io/websocket?from=widgetembed%2F&date=2022_09_07-11_27' failed:

OnlyDawn commented 2 years ago

Hi, I have the above problem

JorrinKievit commented 2 years ago

Seems to be blocked by an extension, try in ingocnito?

OnlyDawn commented 2 years ago

Sorry, I don't quite understand what to do

OnlyDawn commented 2 years ago

Referrer Policy: strict-origin-when-cross-origin

JorrinKievit commented 2 years ago

One of your browser extensions seem to block the iframes. Try to open your project in a private window ->

image

(mine is in dutch but third option)

OnlyDawn commented 2 years ago

Wow, that's ok

But under normal circumstances, it still can't be opened

JorrinKievit commented 2 years ago

Can you specify? Is it working in the private window?

OnlyDawn commented 2 years ago

private window?

Yes, it can be opened in privacy mode

JorrinKievit commented 2 years ago

I'm not sure what the s.tradingview.com domain is used for, since the charts are still fully functional. But unfortunately I cannot change another extensions behaviour and the underlying issue should be with the Mate Translator extension

OnlyDawn commented 2 years ago

Yes, the success is indeed a problem of mate translator extension. Thank you very much.