catchain / tonscan

The Open Network explorer
https://tonscan.org
Other
189 stars 50 forks source link

Unable to get contract info on testnet (CORS error for 301 redirect) #68

Open justdmitry opened 1 year ago

justdmitry commented 1 year ago

Bug Type

Functional

Reproduction steps

  1. Open any address in testnet
  2. Switch to "Contract" tab

Actual result

Information is failed to load.

chrome_2023-07-17_11-56-01

CORS error is displayed in Developer Console.

Expected result

Contract data/source must be shown.

Suggested Severity

Medium

Device

Desktop: Windows 10: Chrome v114.0.5735.199 (latest), Firefox v115.0 (latest)

Additional Context

Below are request/response dumps.

I think browsers expect CORS headers to be present in 301 redirects too.

Fiddler_2023-07-17_11-55-20