Solved

Allow only HTTP GET and POST

Posted on 2006-11-26
2
306 Views
Last Modified: 2008-02-01
I want to restrict my web resources so that only HTTP GET and POST are allowed. I tried the following in web.xml, but now it disallow GET as well:

  <security-constraint>
    <web-resource-collection>
      <web-resource-name>SecureOrdersEast</web-resource-name>
      <description></description>
      <url-pattern>*</url-pattern>
      <http-method>HEAD</http-method>
      <http-method>TRACE</http-method>
      <http-method>PUT</http-method>
      <http-method>DELETE</http-method>
      <http-method>OPTIONS</http-method>
      <http-method>CONNECT</http-method>
    </web-resource-collection>
    <auth-constraint/>
  <security-constraint>

I tried a few different combination but still can't get it to work. Seems that HTTP GET is now always disallowed.
0
Comment
Question by:yongsing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 5

Accepted Solution

by:
deeppra earned 50 total points
ID: 18017404
0
 
LVL 5

Expert Comment

by:deeppra
ID: 18017405
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JSP Popup page 2 166
authenticate preemptively soap ui option 3 172
TreeSet comparator example 7 105
using if condition without JSTL 2 116
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
We have put together a white paper that aims to explain how MSPs can both improve their offering and ease the pain of after-hours service by: -Suggesting changes to workflow -Indicating how to rework policy to suit your team -Providing ConnectW…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question