how to enable token based read query using curl, #3615
-
Hi Team, I noticed that the PostgREST API currently allows read queries without any authentication or token. For example, using the curl command, data can be fetched directly: curl http://localhost:3000/todos Is there a way to enforce authentication so that data cannot be read without a token? If so, could you please provide the necessary steps to configure this? reference: https://postgrest.org/en/stable/tutorials/tut0.html Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Have a look at the
|
Beta Was this translation helpful? Give feedback.
Have a look at the
db-anon-role
config setting: https://postgrest.org/en/stable/references/configuration.html#db-anon-role