I have the following code:
<t:jquery.DialogAjaxLink t:id="linkCreate"
t:dialog="editDialog" t:zone="editZone" t:context="0">
<img src="${asset:context:img/new-24.png}" />
</t:jquery.DialogAjaxLink>
I have the zone and the dialog inside it... And everything works on my local, when I click the link I see the following request:
POST http://localhost:8080/MyPrj/mainadminpage.halfseasoneditcomponent.linkedit/2
The problem comes when I deploy the war on my prod env, and the domain is not localhost, but it still makes the same request to localhost, so I receive CORS.
Any ideas?!
<t:jquery.DialogAjaxLink t:id="linkCreate"
t:dialog="editDialog" t:zone="editZone" t:context="0">
<img src="${asset:context:img/new-24.png}" />
</t:jquery.DialogAjaxLink>
I have the zone and the dialog inside it... And everything works on my local, when I click the link I see the following request:
POST http://localhost:8080/MyPrj/mainadminpage.halfseasoneditcomponent.linkedit/2
The problem comes when I deploy the war on my prod env, and the domain is not localhost, but it still makes the same request to localhost, so I receive CORS.
Any ideas?!