Solved

Allow only HTTP GET and POST

Posted on 2006-11-26
2
296 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now