Help! for crossDomain issue

Hi all

Can anyone please help on this?

I am trying to do design a webportal using this authentification

jQuery(document).ready(function() {

$.post( base + “dhis-web-commons-security/login.action?authOnly=true”, {

  j_username: "admin", j_password: "district"




I add the hosted url in cors whitelist but still get the same issue , so I am choosing to add crossdomain : true.

How add it in this code?

Best reagrds.


IT advisor.