簡體   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