dextools-io / chart-widget

DEXTools chart widget docs
49 stars 8 forks source link

Failing to load on Safari with 403 returned from Cloudfare #11

Open PWAnt opened 8 months ago

PWAnt commented 8 months ago

This is occurring on Desktop Safari or iOS Safari, I'm fairly certain it's not due to the CSP as there are no console errors and the response received is coming from cloudfare:

<h1 data-translate="block_headline">Sorry, you have been blocked</h1>
<h2 class="cf-subheadline">
    <span data-translate="unable_to_access">You are unable to access</span> dextools.io
</h2>

I have tried on multiple devices, networks settings. It works absolutely fine on Chrome.

The requests that are failing specifically are:

URL: https://www.dextools.io/shared/data/pair?address=0xbe66c7432bfe704c4a95af8df6ece0a9e7ceeab6&chain=bsc&audit=false&locks=false
Status: 403

URL: https://www.dextools.io/chain-bsc/api/generic/1/pairexplorer?v=1.0.0&pair=0xbe66c7432bfe704c4a95af8df6ece0a9e7ceeab6&ts=0-0
Status: 403

Any idea?

pablojan commented 8 months ago

Dear user, in order to debug your problem we need the RayID value that is within the "block" response. Thanks

dexigner commented 6 months ago

Safari is blocking cookies in iFrames, and Cloudflare blocks requests to those endpoints without cookies. Which makes embeddable charts unusable for Apple users.

rayids 856a20744ddb9bec and 856a2074be169bec