<div dir="ltr"><div><div><div>Hi<br><br></div>I get the following error<br>POST <a href="http://localhost:8080/unika/usuarios/login">http://localhost:8080/unika/usuarios/login</a> 405 (Method Not Allowed)<br><br></div>I think I did this right, after tinkering with my config for a while I added  unika.localdomain as a web origin. (unika.localdomain is set on my /etc/hosts)<br></div>I also added to both keycloak.json files, backend and front end.<br><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt"><span style="color:rgb(102,14,122);font-weight:bold">&quot;enable-cors&quot; </span>: <span style="color:rgb(0,0,128);font-weight:bold">true</span>, <br><br></pre><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt">I dont know if this is neccesary-<br></pre><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt">If I disable the security in my web.xml of the backend I can access POST  <a href="http://localhost:8080/unika/usuarios/login">http://localhost:8080/unika/usuarios/login</a> with no problems.</pre><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt"></pre><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt">So I know it has something to do with keycloak.  Is there anything else I have to do allow CORS. <br></pre><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt">Before enabling keycloak, i added corsfilter to my resteasy app in the backend, so it was working.  Is this redundant? Does this causes problems?<br></pre></div>