multiversx / mx-api-service

Unified REST API facade for providing data related to the MultiversX blockchain
https://api.multiversx.com
GNU General Public License v3.0
30 stars 49 forks source link

[Bug]: Sockets in configs are obsolete #1317

Closed IosifGabriel closed 1 month ago

IosifGabriel commented 1 month ago

Contact Details

gabriel.iosif@buidly.com

Description

Sockets in configs are obsolete

Steps to reproduce

Had to change to {"url":"socket-api-ams.multiversx.com"} in my configs

On which network is the bug manifesting itself?

Mainnet, Devnet, Testnet

Relevant log output

Access to XMLHttpRequest at 'https://socket-fra.elrond.com/socket.io/?' from origin 'xxx' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

in any dapp which uses a private api

Code of Conduct

IosifGabriel commented 1 month ago

This wrong config for sockets affects the toaster and wont query the /transactions endpoint to see if any tx was finished

bogdan-rosianu commented 1 month ago

Hello. Thanks for raising this. I have made the required updates in #1318

IosifGabriel commented 1 month ago

Thanks @bogdan-rosianu!