How do I disable strict MIME checking

Christopher Armitage-White 0 Reputation points
2023-03-30T10:05:40.6966667+00:00

I have a wordpress site hosting within Azure. However, I am unable to activate a variety of plugins and I have been advised that I have to 'disable strict MIME checking'.

Could somebody provide a guide on how to do this please?

Azure SQL Database
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,041 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 16,771 Reputation points
    2023-03-31T00:42:37.94+00:00

    @Christopher Armitage-White

    Thanks for the question.

    To disable strict MIME checking in Azure, you can try adding a web.config file in the root directory of your WordPress site. Here are the steps to create and add the web.config file:

      1. Log in to your Azure portal and navigate to your WordPress site.
    1. Open the "Advanced tools" section by selecting "Advanced tools" from the "Development Tools" menu.
    2. In the "Advanced tools" section, select "Go" under the "Debug console" dropdown and choose "CMD".
    3. Navigate to the root directory of your WordPress site by running the command "cd site\wwwroot".
    4. Create a new file called "web.config" by running the command "echo > web.config".
    5. Open the web.config file by running the command "edit web.config".
    6. Add the following lines of code to the web.config file:
    <configuration>
      <system.webServer>
        <staticContent>
          <mimeMap fileExtension=".*" mimeType="application/octet-stream" />
        </staticContent>
      </system.webServer>
    </configuration>
    
    

    Save and close the web.config file and restart your WordPress site. This should disable

    strict MIME checking and allow you to activate the necessary plugins.

    Hope that helps. Please let us know if you have other questions.

    Best,

    Grace

    0 comments No comments