Fix crowdsec widget with no bans / alerts
This commit is contained in:
1 parent
d4c0e482d3
commit
97d193faf1
2 files changed
+3
-7
No files matched your search
@@ -71,10 +71,6 @@ export default async function crowdsecProxyHandler(req, res) {
|
||||
|
||||
logger.debug("Calling Crowdsec API endpoint: %s", endpoint);
|
||||
|
||||
if (endpoint.indexOf("decisions") === 0) {
|
||||
delete params.headers.Authorization;
|
||||
}
|
||||
|
||||
const [status, , data] = await httpProxy(url, params);
|
||||
|
||||
if (status !== 200) {
|
||||
|
||||
Reference in new issue
Block a user