如何在泽西使用jax-rs处理cors
@CrossOriginResourceSharing(allowAllOrigins = true)@GET@Path("/readOthersCalendar")@Produces("application/json") public Response readOthersCalendar(String dataJson) throws Exception { //my code. Edited by gimbal2 to fix formatting return Response.status(status).entity(jsonResponse).header("Access-Control-Allow-Origin", "*").build();}
慕雪6442864
相关分类