back soft

مطالب مرتبط با «could not enable integration features» در back soft | نویسنده: استخدام کار

Could not enable CORS for JAX-RS Web Service

Vote count: 0 When I invoke my service via Angular2 using http.post request, I get Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. My JAX-RS service @Override @POST @Path("/getWsCallReports") @Produces(MediaType.APPLICATION_JSON) public Response getWsCallReports(Query query) { try { LOG.info("getWsCallReports called for " + query); retu Response.status(200) .header("Access-Control-Allow-Origin", "*") .header("Access-Control-Allow-Headers", "origin, content-type, accept, authorization") .header("Access-Control-Allow-Credentials", "true"...

ادامه مطلب

برچسب‌های مرتبط

could not enable file history | could not enable s3 event source | could not enable skill | could not enable or disable the constraint | could not enable wbf interface | could not enable audit log 9237 | could not enable integration features | could not enable net for windowsactivationservice | could not enable database for publishing | could not enable any backends