Commit graph

39 commits

Author SHA1 Message Date
Daniel
20a72df439 Improve error messages for not ready API endpoints 2024-04-23 10:46:09 +02:00
Daniel
16d99c76e5 Allow referrers on same origin 2024-04-10 13:48:01 +02:00
Patrick Pacher
9a29e2e4c2 Add blob: to CSP image-src 2023-12-01 11:47:44 +01:00
Daniel
ec1616c1f5 Improve api logging when handler/endpoint does not exist 2023-10-12 17:11:31 +02:00
Vladimir Stoilov
df62abdf1b Add database custom interface functions 2023-07-20 14:33:55 +02:00
Vladimir Stoilov
d6337281e3 Fix enable server flag 2023-04-12 17:17:49 +02:00
Daniel
ca8c784c23 Add switch to enable/disable API HTTP server 2023-04-06 14:35:45 +02:00
Daniel
d90d14ce02 Improve error handling in api and modules 2022-12-12 14:07:30 +01:00
Daniel
eda7a122db Fix linter errors 2022-09-22 14:35:58 +02:00
Daniel
5bf056e584 Elaborate on open questions regarding CORS of browser extensions 2022-08-01 11:04:12 +02:00
Daniel
119dbaef97 Move security headers to the start of the router 2022-08-01 11:03:37 +02:00
Patrick Pacher
2431914756 Fix CORS preflight checks requiring authentication 2022-08-01 10:59:34 +02:00
Daniel
efcea66226 Add better handling for panics within api endpoint handlers 2022-06-21 16:59:41 +02:00
Daniel
f59ad0357a Fix tests and linter warnings 2022-02-01 13:12:46 +01:00
Daniel
3a77659670 Use request.Host instead of the header's Host 2022-01-20 09:02:47 +01:00
Daniel
c92fcf340d Add CSRF protection 2022-01-11 08:58:07 +01:00
Daniel
1695420b0e Fix CORS handling 2021-11-28 23:48:45 +01:00
Daniel
93ff8eb19a Improve dev mode API security 2021-11-23 12:58:01 +01:00
Patrick Pacher
b5e6e67e49 Add connect-src entry for *.safing.io 2021-08-24 13:12:40 +02:00
Daniel
bd46a92359 Fix typo 2021-06-01 12:57:07 +02:00
Daniel
1a4c98c93e Disable dns prefetch via HTTP header 2021-06-01 12:57:01 +02:00
Daniel
2b165c149a Wait for modules to be ready before calling http handlers 2021-05-17 14:42:02 +02:00
Daniel
4a05c26339 Clean API request paths 2021-03-10 11:44:29 +01:00
Daniel
89fad3d9ca Use HTTP security headers on all requests 2021-01-28 16:50:57 +01:00
Daniel
11e8271d41 Add API Key auth and improve endpoints 2021-01-19 15:37:55 +01:00
Daniel
3244fefd43 Implement review suggestions 2021-01-06 13:34:25 +01:00
Daniel
9100dc999b Add endpoint api and authentication layer 2020-12-30 23:49:57 +01:00
Daniel
d6f7a159ad Improve api middlewares 2020-06-05 13:02:19 +02:00
Daniel
adc359c15b Improve api listener integration 2019-10-04 23:49:13 +02:00
Daniel
79a4219487 Update listen api address config override handling 2019-08-02 16:10:34 +02:00
Daniel
8d091f7f7a Update api with registering handlers, middleware and authentication 2019-07-30 13:08:45 +02:00
Daniel
13e64209a6 Add wrapper for github.com/gorilla/mux to resolve multi-repo context key issues 2019-07-04 13:45:47 +02:00
Daniel
8f3082f96f Update import paths 2019-06-27 13:29:56 +02:00
Daniel
358e684909 Fix various issues during portmaster development 2019-01-24 15:23:35 +01:00
Daniel
1ef3ceb274 Complete first alpha version 2018-12-12 19:18:49 +01:00
Daniel
ff919c7342 Expose RequestLogger 2018-10-12 13:27:10 +02:00
Daniel
31c09512a0 Finish first API version 2018-09-27 15:58:31 +02:00
Daniel
b246453a83 Start api revamp 2018-09-21 16:38:18 +02:00
Daniel
96ec15b39b Initial commit after restructure 2018-08-13 14:05:58 +02:00