如何在泽西使用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
随时随地看视频慕课网APP
相关分类