繁体   English   中英

HTTP 方法 POST 不受此 URL 支持,用于 url

[英]HTTP method POST is not supported by this URL for url ending with .html file in wildfly

我正在为我的应用程序登录 function 集成 azure 广告。 成功认证 azure 将访问令牌返回到提到的重定向 URL 。 问题是我在重定向时收到“此 URL 不支持 HTTP 方法 POST”。

这就是重定向 URL 的样子。

https://bbb-dev-ext.abcde.com/myapp.dashboard/azureLogin.html

我们用于我的应用程序的 web 服务器是 wildfly 11

尝试在我的 web.xml 中添加以下内容仍然没有用

<security-constraint>    
  <display-name>Example Security Constraint</display-name>    
  <web-resource-collection>    
     <web-resource-name>Protected Area</web-resource-name>    
     <url-pattern>/azureLogin.html*</url-pattern>   
     <http-method>GET</http-method>    
  </web-resource-collection>
</security-constraint>

有没有其他方法可以将我的请求 http 方法类型从 POST 更改为 GET? 或者有什么方法可以在wildfly应用程序中允许HTTP方法类型POST?

在将 html 转换为 jsp 文件后,我让它工作了。 在处理对 html 页面的 POST 请求时,似乎有一些 Jboss 。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM