首页 > 代码库 > Solr - 访问出现403错误

Solr - 访问出现403错误

把tomcat的webapps\solr\WEB-INF目录下的web.xml中如下代码注释掉就可以正常访问了

<security-constraint>    <web-resource-collection>      <web-resource-name>Disable TRACE</web-resource-name>      <url-pattern>/</url-pattern>      <http-method>TRACE</http-method>    </web-resource-collection>    <auth-constraint/>  </security-constraint>  <security-constraint>    <web-resource-collection>      <web-resource-name>Enable everything but TRACE</web-resource-name>      <url-pattern>/</url-pattern>      <http-method-omission>TRACE</http-method-omission>    </web-resource-collection>  </security-constraint>

Solr - 访问出现403错误