Closed HaveF closed 1 year ago
My apologies, I haven't put up the documentation for datasette-sqlite-http
yet. By default the Datasette version of sqlite-http
disables any functions that make HTTP requests, for security reasons. If you have SQL functions that make arbitrary SQL functions on a public Datasette instance, people can abuse it to DDOS other websites. This includes http_get_headers()
However, if your Datasette instance is private, you can (unsafely) re-enable those functions with the following configuration in your metadata.json
/ metadata.yaml
:
{
"plugins": {
"datasette-sqlite-http": {
"UNSAFE_allow_http_requests": true
}
}
}
Hi, Alex, Great! It works, thanks for your help! ❤️
Hi, there :D
I use
datasette install datasette-sqlite-http
install it, and also sure it is installed bydatasette plugins --all
, my datasette version is 0.64.3.When I run a simple query on the page like
It throw error:
no such function: http_get_headers
What I missed?
Thanks!
Btw, the link to datasette seems not exist https://datasette.io/plugins/datasette-sqlite-http