You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access to XMLHttpRequest at 'https://mempool.space/testnet/api/tx' from origin 'http://localhost:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
#185
Open
YaminZheng opened this issue
Apr 18, 2024
· 0 comments
你应该让他可以自定义 axios headers
至少我在 "@mempool/mempool.js": "^2.3.0" 版本中,只看到了
{
hostname: HOST_NAME,
network: NETWORK,
}
这两个参数
当我使用 axios 调用接口时,如果参数时 application/json 他就会报这个错误
当我改为 text/plain 。且传递的body是一个字符串的时候才会正常回应
The text was updated successfully, but these errors were encountered: