SQL Monitor 8

Allowing SQL Monitor to run within an iframe

If you are using the built in webserver and want to run SQL Monitor within an iframe you will need to edit the web.config at (by default) C:\Program Files\Red Gate\SQL Monitor\WebSite\Website\Web.config.

Running SQL Monitor within an iframe can be a security risk and so we do not recommend it.


This configuration change will only apply on versions of SQL Monitor 8.0.22 or greater. Older version of Monitor will always disallow running in an iframe.

You will need to add the following making sure it is between the <system.webServer> delimiters:

<system.webServer>
  ...

  <httpProtocol>
    <customHeaders>
      <add name="X-Frame-Options" value="allow-from http://urlofyourwebserver:8080/" />
    </customHeaders>
  </httpProtocol>

  ...
</system.webServer>


If you are using IIS you will need to edit custom headers as per Microsoft's recommendations here: https://docs.microsoft.com/en-us/iis/configuration/system.webserver/httpprotocol/customheaders/.


Do you have any feedback on this documentation?

Let us know at sqlmonitorfeedback@red-gate.com


Didn't find what you were looking for?