scatter-demo icon indicating copy to clipboard operation
scatter-demo copied to clipboard

Demo issue with CORS request

Open dawsbot opened this issue 4 years ago • 4 comments

Hi folks, thanks for the great demo! It appears that the eoscanada endpoint is throwing a CORS error which is blocking the POST to https://mainnet.eoscanada.com/v1/chain/get_currency_balance This causes a critical error and no response after clicking # 4

Pasted_Image_5_22_20__10_44_AM

Steps to reproduce

I had Scatter open already and approved the auth for the demo application to access my scatter wallet. On latest Brave Browser (Version 1.10.64 Chromium: 81.0.4044.138 (Official Build) beta (64-bit)) on latest MacOS MacBook Pro

Pasted_Image_5_22_20__10_47_AM

dawsbot avatar May 22 '20 14:05 dawsbot

@dawsbot Yeah, it is the problem with the endpoint, I've changed it. But some demo button I've deleted from the demo page, you may find them in the code though.

chendatony31 avatar May 22 '20 15:05 chendatony31

And you can also check the demo with eosjs2 here: https://github.com/TP-Lab/scatter-demo-eosjs2

chendatony31 avatar May 22 '20 15:05 chendatony31

Looks great, https://github.com/TP-Lab/scatter-demo-eosjs2 works well for me, is it possible to update this repo as well? This repo is linked directly from https://www.tokenpocket.pro/en/developer so I suppose it's important to work without error

dawsbot avatar May 22 '20 15:05 dawsbot

Related link added :)

chendatony31 avatar May 25 '20 03:05 chendatony31