This issue resolved by setting the following in the CookieProvider apache server.
Initially in the httpd.conf file we were having the below line
Header always set Access-Control-Allow-Origin "null"
We replaced the above line with the following:
<IfModule mod_headers.c>
SetEnvIfNoCase Origin "(^https?://(.+\.abc\.com)(:\d+)?$|^null$)" AccessControlAllowOrigin=$0
Header always set Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
</IfModule>
In order to use this, you will need to have the following module enabled
LoadModule headers_module modules/mod_headers.so