Embeeded Form CORS


I get an error when try to send a post request to my web service and get a cors warning
“Request blocked”
No external resources

// Sry its German
Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf http://localhost:15080/{MyWebservice}. (Grund: CORS-Anschlag schlug fehl).

I already tried to add something in the rest-api project and i tried to add something in web.xml in apache conf.

How can I fix this?
Thanks in advance.

@xAJ can you provide the logs or stacktrace of the error?