CORS request failed

Hi

What might be the reason for below error messages?

The node is openAPI & SSL.

With CORS Enabled
Cross-origin request blocked: The same-source rule prohibits reading the external resource on https://37.17.232.8:27876/nxt?requestType=getBlockchainStatus. (Reason: CORS request failed)

With CORS Disabled
Cross-origin request blocked: The same-source rule prohibits reading the external resource on http://37.17.232.8:27876/nxt?requestType=getBlockchainStatus. (Reason: CORS header 'Access-Control-Allow-Origin' is missing).

Thanks for your help.

CORS errors are tricky. Is this on a standard wallet or some custom webpage calling the node API?

This page might help: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors

2 Likes

Make sure the we server which serves the page for the javascript which invokes the call to https://37.17.232.8:27876 has CORS enabled

1 Like