Skip to content

Commit

Permalink
Merge pull request #1509 from akto-api-security/feature/add_more_igno…
Browse files Browse the repository at this point in the history
…red_urls

Adding more types for redundant apis
  • Loading branch information
avneesh-akto authored Sep 18, 2024
2 parents d2c3b39 + f62281a commit ad18a0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Button, ButtonGroup, Divider, LegacyCard, Text, VerticalStack, HorizontalGrid, HorizontalStack, Icon, Scrollable, TextField, Tooltip, Tag, Form } from '@shopify/polaris'
import { Box, Button, ButtonGroup, Divider, LegacyCard, Text, VerticalStack, HorizontalGrid, HorizontalStack, Scrollable, TextField, Tag, Form } from '@shopify/polaris'
import React, { useEffect, useState } from 'react'
import settingFunctions from '../module'
import Dropdown from '../../../components/layouts/Dropdown'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const urlOptionsList = [
title: 'JS files',
options: [
{value: 'js', label: '.js'},
{value: 'js.map', label: '.js.map'}
],
},
{
Expand All @@ -38,6 +39,7 @@ const urlOptionsList = [
{value: 'gif', label: '.gif'},
{value: 'svg', label: '.svg'},
{value: 'webp', label: '.webp'},
{value: 'ico', label: '.ico'}
],
},
{
Expand Down
4 changes: 2 additions & 2 deletions libs/dao/src/main/java/com/akto/dto/AccountSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,12 @@ public void setPartnerIpList(List<String> partnerIpList) {
public List<String> getAllowRedundantEndpointsList() {
if(this.allowRedundantEndpointsList == null) {
List<String> ignoreUrlTypesList = Arrays.asList(
"htm","html", "css", "js", // Web formats
"htm","html", "css", "js", "js.map", // Web formats
"jpg", "jpeg", "png", "gif", "svg", "webp", // Image formats
"mp4", "webm", "ogg", "ogv", "avi", "mov", // Video formats
"mp3", "wav", "oga", // Audio formats
"woff", "woff2", "ttf", "otf", // Font formats
"pptx", "json" // file formats
"pptx", "json", "ico" // file formats
);
return ignoreUrlTypesList;
}
Expand Down

0 comments on commit ad18a0f

Please sign in to comment.