Forum Discussion
kouriada_284551
Oct 03, 2018Nimbostratus
Hi,
client will come from particular web page( where will be login page into source web page), so I can determine that according particular fqdn of that domainA or B
I have been thinking that I could solve that like this: *.domainA, *.domainB and add those *.domains to Data groupe list and write something like this: if { ! [class match $act_uri contains allow_domains] and that the particular domain will be added to Access-Control-Allow-Origin *.domainA or *.domainB according client comes from
or just write it down into couple simple irules, theoreticaly:
*for .domainA:
http:Request
if http: host equal domainA
than
http response:
http:header Access-Control-Allow-Origin domainA<>br
*for .domainB:
http:Request
if http: host equal domainA
than
http response:
http:header Access-Control-Allow-Origin domainA<>br
etc
make it sense?
I am not strong enough in writing of irules
AK