<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(153,51,0)">Guys,</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(153,51,0)"><br></div><div class="gmail_default" style><font color="#993300" face="verdana, sans-serif">I want to enable CORS for Direct Grant Access, how to do it? I am getting following error from my javascript application:</font><br><font color="#993300" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style><font color="#993300" face="verdana, sans-serif">(index):1 XMLHttpRequest cannot load <a href="http://localhost:8080/auth/realms/master/tokens/grants/access">http://localhost:8080/auth/realms/master/tokens/grants/access</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://pn.localhost:81">http://pn.localhost:81</a>' is therefore not allowed access. The response had HTTP status code 400.</font><br></div><div class="gmail_default" style><font color="#993300" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style><font color="#993300" face="verdana, sans-serif"><br></font></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><span style="color:rgb(153,51,0);font-family:verdana,sans-serif"><div style="display:inline"></div>Regards,</span><br style="color:rgb(153,51,0);font-family:verdana,sans-serif"><span style="color:rgb(153,51,0);font-family:verdana,sans-serif"><b><div style="display:inline"></div>Sadiq Khoja</b></span></div><div style="font-family:arial;font-size:small"><div style="font-family:verdana,sans-serif;color:rgb(153,51,0)"><br></div></div></div></div></div></div></div>
</div>