Javascript ModalDialog-潜在危险的请求。从客户端检测到路径值
将以下代码添加到Sharepoint 2013页面:Javascript ModalDialog-潜在危险的请求。从客户端检测到路径值,javascript,iis,sharepoint,web-config,Javascript,Iis,Sharepoint,Web Config,将以下代码添加到Sharepoint 2013页面: <a href=”javascript:SP.UI.ModalDialog.OpenPopUpPage('http://microsoft.com', null, 100, 100);” >microsoft</a> 我有 <location path="_vti_bin/EwaInternalWebService.json"> <system.web> <httpR
<a href=”javascript:SP.UI.ModalDialog.OpenPopUpPage('http://microsoft.com', null, 100, 100);” >microsoft</a>
我有
<location path="_vti_bin/EwaInternalWebService.json">
<system.web>
<httpRuntime requestValidationMode="2.0" />
<webServices>
<protocols>
<clear />
</protocols>
</webServices>
</system.web>
</location>
<location path="_vti_bin/DynamicGridContent.json">
<system.web>
<httpRuntime requestValidationMode="2.0" />
<webServices>
<protocols>
<clear />
</protocols>
</webServices>
</system.web>
</location>
<location path="_vti_bin/CrossDomainAjax.ashx">
<system.web>
<httpRuntime requestValidationMode="2.0" />
</system.web>
</location>
<pages
enableSessionState="false"
enableViewState="true"
enableViewStateMac="true"
validateRequest="false"
clientIDMode="AutoID"
pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
asyncTimeout="7"
>
在web.config文件中(在VirtualDirectories和config文件夹中)。
我还尝试使用“/\u layouts/MyPage.aspx”作为URL,结果相同。
有什么想法吗?尝试使用相对路径。错误消息说:从客户端(:)检测到一个潜在危险的请求。路径值。。注意(:)我认为错误是:。还请检查此项,我还尝试了“/\u layouts/MyPage.aspx”,并且在错误消息中有(:)
<location path="_vti_bin/EwaInternalWebService.json">
<system.web>
<httpRuntime requestValidationMode="2.0" />
<webServices>
<protocols>
<clear />
</protocols>
</webServices>
</system.web>
</location>
<location path="_vti_bin/DynamicGridContent.json">
<system.web>
<httpRuntime requestValidationMode="2.0" />
<webServices>
<protocols>
<clear />
</protocols>
</webServices>
</system.web>
</location>
<location path="_vti_bin/CrossDomainAjax.ashx">
<system.web>
<httpRuntime requestValidationMode="2.0" />
</system.web>
</location>
<pages
enableSessionState="false"
enableViewState="true"
enableViewStateMac="true"
validateRequest="false"
clientIDMode="AutoID"
pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
asyncTimeout="7"
>