
SharePoint から Cognos TM1 URL への直接リンクで 403 が発生するという奇妙な問題が発生していますが、リンクを直接更新または貼り付けると機能します。
原因は先頭の「http」が削除されたことに関係している可能性があります (他のブラウザについては以下を参照)。ただし、生の HTML リンクや Fiddler の結果ではそれが明確ではありません。
原因/解決策について何か考えはありますか?
SharePoint メニュー項目から:
GET http://server:9510/tm1web/ HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://portal/Pages/home.aspx
Accept-Language: en-AU
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: server:9510
Connection: Keep-Alive
結果 [失敗]:
HTTP/1.1 403 Forbidden
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 23 Feb 2015 01:25:29 GMT
403 の後にブラウザで F5/更新を押すと、次のようになります。
GET http://server:9510/tm1web/ HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-AU
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: server:9510
Cookie: JSESSIONID=6A01B8265CC22BD13A9DD46575A6485F; DWRSESSIONID=gIilAwYv2K33Yahd$G7keNo4QKk
結果 [作品]:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/html;charset=UTF-8
Content-Length: 684
Date: Mon, 23 Feb 2015 01:43:40 GMT
その他のブラウザ:
- Chrome でも 403 が表示されますが、URL の先頭の「http」は表示されません。つまり、F5 キーを押しても効果はありません。
- Firefox は Chrome と同じです:
回避策としては、リダイレクトを実行するページ (HTML META リダイレクトなど) を備えた SharePoint 以外の Web サーバーを使用することです。
私たちは、許容Xフレームヘッダーモジュール HTTP Module
原因である可能性がありますが、開発サーバーで無効にしても問題は発生します。
追加例:
SharePointRedirect
ページから:
GET http://portal/Pages/TM1-Redirect.aspx HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://portal/Pages/home.aspx
Accept-Language: en-AU
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: portal
Connection: Keep-Alive
Cookie: ...
結果 #1 - リダイレクト:
HTTP/1.1 302 Found
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Sun, 08 Feb 2015 01:45:45 GMT
Last-Modified: Mon, 23 Feb 2015 01:45:45 GMT
Location: http://server:9510/tm1web/
Server: Microsoft-IIS/8.0
X-SharePointHealthScore: 0
X-AspNet-Version: 4.0.30319
SPRequestGuid: 9664ec9c-9790-10c2-3b44-67b194daa158
request-id: 9664ec9c-9790-10c2-3b44-67b194daa158
SPRequestDuration: 74
SPIisLatency: 0
WWW-Authenticate: Negotiate ...
Persistent-Auth: true
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 15.0.0.4561
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
Date: Mon, 23 Feb 2015 01:45:45 GMT
Content-Length: 146
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="http://server:9510/tm1web/">here</a>.</h2>
</body></html>
結果#2 - [失敗- 同上]:
HTTP/1.1 403 Forbidden
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 23 Feb 2015 01:45:45 GMT
答え1
この問題を回避するには、tm1web_config.xml ファイルを次のように変更します。
これを変える
<add key="CrossDomainAccessList" value="" />
に
<add key="CrossDomainAccessList" value="*" />
アプリケーション サーバー サービスを再起動します。