Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

X-Frame-Options Error 500 on IIS 8.5 Windows Server 2012 R2

$
0
0

Here is my issue. I have 2 servers  TEST1 and Prod1 an Application Running on IIS 8.5 and on Windows 2012 R2 Build 9600

On the TEST1 server my website runs under Default\LocalHost so I access it like this

http://TEST1/LarrysApp/Default.aspx

On my Prod1 server evertying is configured as a website with a valid ip in the real world

http://www.LarrysApp.com/Default.aspx

My Issue is this I add the x-frame-option on my test server and everything works just fine. But if I add this to my production server it Dies with a 500 error.

The difference in the configuration of the application is that on the TEST1 server the application is running under theDefault webhost ( running in integrated ) and I added my LarrysApp as an application running on 4.5 Classic.

On the production Server I www.LarrysApp.com isrunning as 4.5 Classic.

So I tried to match them up as best i could.

This is what I added

<httpProtocol>
  <customHeaders>
      <remove name="X-Powered-By" />
      <add name="X-Frame-Options" value="SAMEORIGIN" />
  </customHeaders>
</httpProtocol>

Any clue would be Great.

Thanks in advance

Larry


Viewing all articles
Browse latest Browse all 1881

Trending Articles