Posts by Bacamarte Linux • 23 points
5 posts
-
-1
votes1
answer259
viewsA: REST - Send null to Integer parameter
Follows resolution: @GET @Path("/listar_log_utilizacao/{idUsuario: .*}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response…
-
0
votes1
answer259
viewsQ: REST - Send null to Integer parameter
I have the following situation in my REST (Jersey): URL: http://localhost:8080/api/listar_log_utilizacao/null Code: @GET @Path("/listar_log_utilizacao/{idUsuario: .*}")…
-
-1
votes3
answers1642
viewsA: Firefox Error: Access-Control-Allow-Origin
Resolution: Sponse.setHeader("Access-Control-Allow-Origin", "http://localhost:8081"); Sponse.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");…
-
-1
votes3
answers1642
viewsA: Firefox Error: Access-Control-Allow-Origin
The fact is that Access-Control-Allow-Origin and Access-Control-Allow-Headers are already set in the header, but apparently firefox does not identify them. Same setup works smoothly on Chrome...…
-
2
votes3
answers1642
viewsQ: Firefox Error: Access-Control-Allow-Origin
response.setHeader("Access-Control-Allow-Origin", "*"); In the Chrome works normally. Even with the configuration Access-Control-Allow-Origin in CORS, Firefox gives error: (translated) Blocked…