I'm trying to show secure images for end user as a div with background (css background-image: url(...)) I have cross-domain configuration where my AngularJS client application is deployed on S3 bucket and server-side (Ruby-on-Rails) is deployed on heroku under different domain name.
All normal browsers are sending the auth cookie(which was set after authentication) within the image request so that server can understand if user has access to that particular image and response according to that.
But somehow IE10 and IE11 doesn't send any cookies on cross-origin requests. But when I set up both servers on the same machine (only ports are different) - everything works fine.
Can anyone help me with this issue?
Update:
Request headers:
- Accept image/png, image/svg+xml, image/*;q=0.8, /;q=0.5
- Referer my_referrer_url
- Accept-Language ru-RU,en-US;q=0.5
- User-Agent Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
- Accept-Encoding gzip, deflate
- Host my_heroku_serverside_url
- DNT 1
- Connection Keep-Alive`
Response headers:
- Response HTTP/1.1 401 Unauthorized
- Server Cowboy
- Date Thu, 26 Feb 2015 22:24:04 GMT
- Connection keep-alive
- Strict-Transport-Security max-age=31536000
- X-Frame-Options SAMEORIGIN
- X-Xss-Protection 1; mode=block
- X-Content-Type-Options nosniff
- Content-Type text/html; charset=utf-8
- Cache-Control no-cache
- X-Request-Id df2154b6-5c6f-4534-bff0-094576359b78
- X-Runtime 0.005919
- Transfer-Encoding chunked
- Via 1.1 vegur