Skip to main content
kmak
Staff
Staff
Oct 13, 2026 6:14 AM UTC

Troubleshooting Tip: How to troubleshoot the issue with the security JavaScript code inserted by MITB Protection which causes error on file upload to non-HTTP local URI schemas such as blob:, ‘data:’, ‘file:’ etc

Description

This article describes the steps to troubleshoot the issue with the security JavaScript code inserted by MITB Protection which causes error on file upload to non-HTTP local URI schemas such as blob:, ‘data:’, ‘file:’ etc

Scope

FortiWeb.

Solution

Prerequisite:

  • FortiWeb Firmware version v7.6.10 and older.

  • FortiWeb Server Policy has the MITB (Man in the Browser) protection module configured with Ajaxcheck Status option enabled.

  • The protected application page has the file upload function with non-HTTP local URI schemas such as ‘blob:’, ‘data:’, ‘file:’ etc.

 

Issue:

The Man-in-the-Browser (MITB) protection module with Ajaxcheck Status enabled in FortiWeb inserts JavaScript code into HTTP response bodies to protect user data from being sniffed by compromised browsers.
A known issue was found where the injected script does not support non-HTTP local URI schemas, such as 'blob:', 'data:', and 'file:'. This causes failures when applications attempt to upload images using 'blob:' URLs.

 

  1. The MitB protection rule, in which the Ajaxcheck Status option is enabled.

ca686869.jpg


  1. In the test page scenario, there are both image upload functions using HTTPS URI schema and non-HTTP URI schema using ‘blob:’ URL.

9335ef21.jpg


  1. The image upload test on HTTPS URL completed successfully.

8971f9a1.jpg


  1. The image upload test on ‘blob:’ URL schema failed with the exception error on ‘XMLHttpRequest.open()’ function.

b4227afe.jpg


Workaround:

The temporary workaround is to disable the Ajaxcheck status option in the MITB Protection rule.

473f6266.jpg


Resolution:

The issue shall be fixed in v7.6.11 and v8.0.8. Upgrade to the fixed or latest version to resolve the issue.

 

Related document:

AJAX Request allow list - Man in the Browser (MitB) Protection

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024