From Haris.Alijagic at halcom.si Thu Jun 2 12:45:31 2016 From: Haris.Alijagic at halcom.si (=?iso-8859-2?Q?Haris_Alijagi=E6?=) Date: Thu, 2 Jun 2016 12:45:31 +0000 Subject: [zanata-users] Cross origin whitelist Message-ID: <65d4bf612995491b931107f6f32b344d@EXCHANGE2013.halcom.local> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From aeng at redhat.com Thu Jun 2 20:55:34 2016 From: aeng at redhat.com (Alex Eng) Date: Fri, 3 Jun 2016 06:55:34 +1000 Subject: [zanata-users] Cross origin whitelist In-Reply-To: <65d4bf612995491b931107f6f32b344d@EXCHANGE2013.halcom.local> References: <65d4bf612995491b931107f6f32b344d@EXCHANGE2013.halcom.local> Message-ID: Hi Haris, For multiple whitelist, you can insert the system property in standalone.xml with whitespace separator: 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 for the machine. --------------------------------------------- Alex Eng Senior Software Engineer Globalisation Tools Engineering DID: +61 3514 8262 Mobile: +614 2335 3457 Red Hat, Asia-Pacific Pty Ltd Level 1, 193 North Quay Brisbane 4000 Office: +61 7 3514 8100 Fax: +61 7 3514 8199 Website: www.redhat.com On Thu, Jun 2, 2016 at 10:45 PM, Haris Alijagi? 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: From sflaniga at redhat.com Fri Jun 3 00:46:49 2016 From: sflaniga at redhat.com (Sean Flanigan) Date: Fri, 3 Jun 2016 10:46:49 +1000 Subject: [zanata-users] Cross origin whitelist In-Reply-To: <65d4bf612995491b931107f6f32b344d@EXCHANGE2013.halcom.local> References: <65d4bf612995491b931107f6f32b344d@EXCHANGE2013.halcom.local> Message-ID: Hi Haris, I haven't tested it, but by my understanding, whitelisting the origin " https://localhost:8443" may actually work, if I'm understanding your use case correctly. Otherwise, you might want to consider disabling CORS security in your browsers, eg https://www.thepolyglotdeveloper.com/2014/08/bypass-cors-errors-testing-apis-locally/ Sean. On 2 June 2016 at 22:45, Haris Alijagi? 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 > -- Sean Flanigan Principal Software Engineer Globalisation Tools Engineering Red Hat -------------- next part -------------- An HTML attachment was scrubbed... URL: