I have several days with a problem of CORS , I have my back in an api Rest in Glassfish (JavaEE), and the Angular app consumes that api, evidently they are in different servers so it is necessary the Access-Control-Allow-Origin statement in the responses of the Back, but the only verb that answers me is GET, the rest of the verbs return an error like this, in this case I am trying a PUT :
Cross-origin request blocked: The same source policy does not allow reading remote resources in link . (Reason: CORS header 'Access-Control-Allow-Origin' not present)
If you realize, the verbs that fail are all those that receive data on the server, I am using POSTMAN to test my apis, in POSTMAN all the verbs work fine, but when I try to use the Verbs with Angular then gives me the error of CORS in all the verbs that are not GET.
I'm using HttpClient from Angular5 , I'm not using frameworks in the back, I'm using Netbeans.
Please some idea what may be happening.