java - Cross domain access with Jax-RS -


is enough allow other domain access resource:

@override public response signin() {     //acao = access-control-allow-origin     response resp = response.ok("{ 'login' : 'ok'}").header(acao, "*").build();     return resp; } 

in case better use tested implementation. adam bien released library allow cross domain access jax-rs applications. se blog post here: cors jax-rs 2.0 / java ee 7 released


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -