[zanata-users] Cross origin whitelist

Alex Eng aeng at redhat.com
Thu Jun 2 20:55:34 UTC 2016


Hi Haris,

For multiple whitelist, you can insert the system property in
standalone.xml with whitespace separator:
<property name="zanata.origin.whitelist" value="http://localhost1:8000
http://localhost2:8000 http://localhost3:8000" />

As for the IP address, my guess is that you will need the internal IP
address of those requester. So you might end up having to put e.g.
https://192.168.1.1:8443/webapp <https://localhost:8443/webapp> for the
machine.


---------------------------------------------

Alex Eng
Senior Software Engineer
Globalisation Tools Engineering
DID: +61 3514 8262 <callto:+61+3514+8262>
Mobile: +614 2335 3457 <callto:+614+2335+3457>

Red Hat, Asia-Pacific Pty Ltd
Level 1, 193 North Quay
Brisbane 4000
Office: +61 7 3514 8100 <callto:+61+7+3514+8100>
Fax: +61 7 3514 8199 <callto:+61+7+3514+8199>
Website: www.redhat.com

On Thu, Jun 2, 2016 at 10:45 PM, Haris Alijagić <Haris.Alijagic at halcom.si>
wrote:

> Hi,
>
>
>
> I saw you added an option to whitelist origins for Zanata Rest requests. I
> was wondering if you could help me with this situation. For example lets
> say in our network Zanata is set up on this domain :
> https://zanatadomain/zanata
>
>
>
> And then on the same network we have for example 30 computers that run
> their own web application each on their own localhost for example :
> https://localhost:8443/webapp
>
> What would I need to put as the whitelist value in the configuration so
> that every one could send Rest requests to zanata from their webapp, would
> just »https://localhost:8443« work I assume it wouldnt?
>
> Thank you for your help
>
>
>
> Best Regards,
>
>
>
> Haris Alijagic
>
>
>
> _______________________________________________
> zanata-users mailing list
> zanata-users at redhat.com
> https://www.redhat.com/mailman/listinfo/zanata-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/zanata-users/attachments/20160603/a5e4492b/attachment.htm>


More information about the zanata-users mailing list