When you see the "error": "UNAUTHORIZED" in your response accompanied by an HTTP status code 401, it indicates a problem with authentication. This means the server recognizes the request but refuses to authorize it because it does not meet the required security credentials.
It's important to note that QuickNode DOES NOT currently support the OR operator for security policies, so your requests must follow ALL enabled security policies on your endpoint. Failing to satisfy any of them can lead to the UNAUTHORIZED error. To achieve a similar effect as the OR operator, you can utilize different endpoints, each with its own unique security configurations.
If you have multiple security features enabled, ensure that your API request headers correctly implement these features. This could include token-based authentication, IP whitelisting, domain-based security, and others. For instance, include the correct bearer token and ensure the request originates from a whitelisted IP or domain.
For additional security insights, please visit our guides at https://www.quicknode.com/guides/tags/security.
Comments
0 comments
Article is closed for comments.