Skip to content

Commit

Permalink
Merge pull request #594 from eosnetworkfoundation/yarkin/api_get_resp…
Browse files Browse the repository at this point in the history
…onse

[0.5] Return better result when accessed by GET
  • Loading branch information
arhag committed Jun 9, 2023
2 parents 1df939d + b78fc90 commit 12288f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion peripherals/proxy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ http {
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' '*';
return 204;
add_header 'Content-Type' 'text/html';
return 200 '<!DOCTYPE html>This is an API endpoint that only accepts JSON-RPC requests. <br> Please visit <a href = "https://docs.eosnetwork.com/docs/latest/eos-evm/">https://docs.eosnetwork.com/docs/latest/eos-evm/</a> for information about EOS EVM. \n';
}

resolver 127.0.0.11;
Expand Down

0 comments on commit 12288f1

Please sign in to comment.