javascript - 307 redirect - mime type issue -
we have authentication procees in our application whenever server gets request client not authenticated (cookie missing) returns 307 response , client should redirected login page (which might on domain).
i've bumped following problem:
when delete cookie , main index.html page cached , open web page 307 first time when js file requested (there script tag in index.html). in case browser tries redirect , i'm getting following error:
resource interpreted script transferred mime type text/html: "https://win-7-64-server:8443/cas-server/login?service=http://172.30.2.25:81%2f172.30.2.25%3a8182%2fshunra%2fcommon%2fjs%2flibs%2frequire%2frequire.js".
this original javascript url: http://172.30.2.25:8182/shunra/common/js/libs/require.js
obviously don't control redirect. ideas?
edit:
i thought problem , problem browser gets 307 http code , thinks javascrip file redirected while in reality want redirect entire website - ideas how that?
Comments
Post a Comment