diff --git a/src/js/redirect-engine.js b/src/js/redirect-engine.js index 3feec75be3fd8..e069231b758c6 100644 --- a/src/js/redirect-engine.js +++ b/src/js/redirect-engine.js @@ -38,6 +38,7 @@ const extToMimeMap = new Map([ [ 'gif', 'image/gif' ], [ 'html', 'text/html' ], [ 'js', 'text/javascript' ], + [ 'json', 'application/json' ], [ 'mp3', 'audio/mp3' ], [ 'mp4', 'video/mp4' ], [ 'png', 'image/png' ], diff --git a/src/js/redirect-resources.js b/src/js/redirect-resources.js index f47647d4ba561..f5e4921ad7124 100644 --- a/src/js/redirect-resources.js +++ b/src/js/redirect-resources.js @@ -162,6 +162,10 @@ export default new Map([ alias: [ 'noopjs', 'abp-resource:blank-js' ], data: 'text', } ], + [ 'noop.json', { + alias: [ 'noopjson' ], + data: 'text', + } ], [ 'noop.txt', { alias: 'nooptext', data: 'text', diff --git a/src/web_accessible_resources/noop.json b/src/web_accessible_resources/noop.json new file mode 100644 index 0000000000000..9e26dfeeb6e64 --- /dev/null +++ b/src/web_accessible_resources/noop.json @@ -0,0 +1 @@ +{} \ No newline at end of file