Foros de discusión
Liferay and JS cross domain issue (CORS)
Peter Kasson, modificado hace 10 años.
Liferay and JS cross domain issue (CORS)
Junior Member Mensajes: 60 Fecha de incorporación: 9/12/08 Mensajes recientes
Hi,
When running my portal from a dynamic dns site, which port forwards to an internal server, the portal does not execute the JS as the script appears to 'it' as though it were a cross domain call.
The error:
[indent][indent][/indent]Origin http://192.168.1.12:8080 is not allowed by Access-Control-Allow-Origin[/indent]
I have setup the CORS filter and tried everything (well, obviously not everything) ... to get this CORS issue working with LR , any ideas ?
Thanks,
Peter
When running my portal from a dynamic dns site, which port forwards to an internal server, the portal does not execute the JS as the script appears to 'it' as though it were a cross domain call.
The error:
[indent][indent][/indent]Origin http://192.168.1.12:8080 is not allowed by Access-Control-Allow-Origin[/indent]
I have setup the CORS filter and tried everything (well, obviously not everything) ... to get this CORS issue working with LR , any ideas ?
Thanks,
Peter
Srikanth Shanigaram, modificado hace 9 años.
RE: Liferay and JS cross domain issue (CORS)
Junior Member Mensajes: 55 Fecha de incorporación: 7/10/14 Mensajes recientes
Hi Peter,
I am also facing the same issue, have you resolved the issue?
Regards
I am also facing the same issue, have you resolved the issue?
Regards
Paul Allain, modificado hace 8 años.
RE: Liferay and JS cross domain issue (CORS)
Junior Member Mensajes: 77 Fecha de incorporación: 3/09/13 Mensajes recientes
Anyone from liferay want to shed some light on this?
David H Nebinger, modificado hace 8 años.
RE: Liferay and JS cross domain issue (CORS)
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Your virtual host must be that of the domain name; Liferay will ensure all links are for the vhost, not the internal ip/port combo. Your gateway should forward requests to the right place and they should all appear to come from the same origin.