I'm trying to figure out how to get CORS wrking. RN our webapp gets stuck due to no Access-Control-Allow-Origin header being present. I've checked the annotations and they seem to be correct to me:
@ApplicationScoped
@Path("initiatives")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@CrossOrigin(supportedMethods = "GET, POST, HEAD, DELETE, OPTIONS", exposedHeaders = "Access-Control-Allow-Origin, X-Total-Count")
public class InitiativesResource { ... }
The default value for origin is *, which should be fine. Do you know what I'm doing wrong?
Hi there,
I'm trying to figure out how to get CORS wrking. RN our webapp gets stuck due to no
Access-Control-Allow-Origin
header being present. I've checked the annotations and they seem to be correct to me:The default value for origin is
*
, which should be fine. Do you know what I'm doing wrong?Thank you :)!