Hi All,
I'm new to soapui, here my requirement i sto add an Strict Transport Security protocol to my WCF service and it has to be tested via SOAPUI tool.
I'm facing the issues when trying to add HSTS (Strict -Transposrt Security) protocol in my service.
I have added the following code in my web.config file to enable HSTS in my service
<system.webServer>
<rewrite>
<rules>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}"
redirectType="Permanent" />
</rule>
</rules>
<outboundRules>
<rule name="Add Strict-Transport-Security when HTTPS" enabled="true">
<match serverVariable="RESPONSE_Strict_Transport_Security"
pattern=".*" />
<conditions>
<add input="{HTTPS}" pattern="on" ignoreCase="true" />
</conditions>
<action type="Rewrite" value="max-age=31536000" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>
I'm getting the following error in my SOAPUI response I was facing the error as
IIS 7.5 Detailed Error - 500.19 - Internal Server Error when browsed i got one solution to modify the following line in
<section name="handlers" overrideModeDefault="Deny" />
to
<section name="handlers" overrideModeDefault="Allow" />
%windir%\system32\inetsrv\config\ApplicationHost.config file but still it's not working.
Is there someone can help me out.
Thanks in Advance
Join Hands Change lives
Thanks & Regards
Straight Edge Society