I'm starting with Apache Syncope for an application with Angular with a
back in Java.

I tried using the Java artifact but it gives me problems that I am not able
to solve and that I have asked in this list (
http://syncope-user.1051894.n5.nabble.com/Apache-Syncope-modify-XmlElement-td5710101.html
 )

Actually that since I can not do it that way, I thought maybe I could throw
directly against Syncope from the front with REST requests. Is that
possible?

My idea is to do something like this:

let url = 'http: // localhost: 9080 / users';
>     this.http.post (url, {params: {param: 'string'}}). subscribe (data => {
>       console.log (data);
>     });
>   }


but when he tries, he says:

Access to XMLHttpRequest at 'http: // localhost: 9080 / users' from origin'
> http: // localhost: 4200 'has been blocked by CORS policy: Response to
> preflight request does not pass access control check: No' Access-Control
> -Allow-Origin 'header is present on the requested resource.


Can it be done like this? If so, how can I avoid cors? (I already have a
plugin installed on an extension in Crhome but it still gives me that error)

Reply via email to