Update CorsPreflightService.java (#8387)
Adding DELETE & PUT Co-authored-by: Stian Thorgersen <stianst@gmail.com>
This commit is contained in:
parent
52aad0bbdc
commit
518d318f0c
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ public class CorsPreflightService {
|
|||
@Path("{any:.*}")
|
||||
@OPTIONS
|
||||
public Response preflight() {
|
||||
Cors cors = Cors.add(request, Response.ok()).auth().allowedMethods("GET", "POST", "HEAD", "OPTIONS").preflight();
|
||||
Cors cors = Cors.add(request, Response.ok()).auth().allowedMethods("GET", "POST", "DELETE", "PUT", "HEAD", "OPTIONS").preflight();
|
||||
return cors.build();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue