github
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/issues/681#issuecomment-590107309 | https://api.github.com/repos/simonw/datasette/issues/681 | 590107309 | MDEyOklzc3VlQ29tbWVudDU5MDEwNzMwOQ== | 9599 | 2020-02-23T19:36:33Z | 2020-02-23T19:36:33Z | OWNER | For adding extra HTTP headers I suggest writing a plugin. There's an example in the docs of one that adds a simple HTTP header here: https://datasette.readthedocs.io/en/stable/plugins.html#asgi-wrapper-datasette You don't need to bundle it up as a full Python package - you can create a `plugins/add_headers.py` file and run Datasette with `--plugins-dir=plugins/`: https://datasette.readthedocs.io/en/stable/plugins.html#writing-plugins | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
569317377 | |
https://github.com/simonw/datasette/issues/681#issuecomment-590107464 | https://api.github.com/repos/simonw/datasette/issues/681 | 590107464 | MDEyOklzc3VlQ29tbWVudDU5MDEwNzQ2NA== | 9599 | 2020-02-23T19:38:16Z | 2020-02-23T19:38:16Z | OWNER | The `default_cache_ttl` config currently only takes effect for databases that are loaded in immutable mode using `-i database.db`: https://datasette.readthedocs.io/en/stable/performance.html#immutable-mode | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
569317377 | |
https://github.com/simonw/datasette/issues/681#issuecomment-590107843 | https://api.github.com/repos/simonw/datasette/issues/681 | 590107843 | MDEyOklzc3VlQ29tbWVudDU5MDEwNzg0Mw== | 9599 | 2020-02-23T19:42:15Z | 2020-02-23T19:42:15Z | OWNER | Those security headers from your screenshot are definitely worth me thinking more about. Even if not as core features they could make a great officially supported plugin. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
569317377 | |
https://github.com/simonw/datasette/issues/681#issuecomment-590543398 | https://api.github.com/repos/simonw/datasette/issues/681 | 590543398 | MDEyOklzc3VlQ29tbWVudDU5MDU0MzM5OA== | 2181410 | 2020-02-24T20:53:56Z | 2020-02-24T20:53:56Z | NONE | Excellent. I'll implement the simple plugin-solution now. And will have a go at a more mature plugin later. Thanks! | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
569317377 |