Search code examples
phplaravelblockchainbitcoin

How to solve this error in blockchain and PHP


Access to XMLHttpRequest at 'https://chain.so/api/get_address_balance/BTCTEST/undefined' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.


Solution

  • If you are facing CORS Origin issue then you can use this package

    https://github.com/barryvdh/laravel-cors