Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • The same error. In console in Tomcat look like they don't receive any request frorm Angular - no any new message in console even error. Commented Mar 6, 2015 at 19:48
  • Can you please verify that you are indeed sending valid id, and the URL which you compose is correct? As your GET method works fine, I assume configuration is fine, and you mapping for DELETE is also fine, so the problem might be in client making a request. Commented Mar 6, 2015 at 19:54
  • Information from network in FireBug: HTTP/1.1 403 Forbidden Server: Apache-Coyote/1.1 Content-Type: text/plain Content-Length: 0 Date: Fri, 06 Mar 2015 20:22:10 GMT OPTIONS /sake/dict/technologies HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: pl,en-US;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate Origin: localhost:8000 Access-Control-Request-Method: DELETE Connection: keep-alive and from console.log(z) return: 2 Commented Mar 6, 2015 at 20:28
  • Can you try accessing URL (localhost:8080/sake/dict/technologies/1) directly via any Rest Client? Anyway you are getting 403 forbidden, which means request from a client can be reached and understood, but server refuses to take any further action. Do you have any specific security configs, headers? Commented Mar 6, 2015 at 20:53
  • I installed HTTP Resource Test and with that is work. So something wrong is with my angular client. Hmm, maybe something with CORS policy but with GET and POST it work. in web.xml I have configuration <filter-mapping> <filter-name>CorsFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> Commented Mar 6, 2015 at 21:05