SP2013의 팜 솔루션으로 배포되는 사용자 지정 웹 서비스가 만들어졌습니다. VS Project에서이 서비스의 ISAPI 폴더에 대한 관리 경로를 추가했습니다.Sharepoint 2013 사용자 지정 웹 서비스 가져 오기 401
추가 C : \을 Inetpub \ wwwroot \ wss \ VirtualDirectories \ 80이
<location path="_vti_bin/FCWebServices.svc">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
또한 추가 C : \ 프로그램 파일 \ 공통 파일 \ 15 \ ISAPI의 \ web.config를
\ Microsoft 공유 \ 웹 서버 확장 IE 나 크롬에서 적절한 경로 " http://host/_vti_bin/FCWebServices.svc/GetOffCanvasNavigation"를 호출<location path="FCWebServices.svc">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
- 난, 난 그냥 웹 서비스 방법 자체를 호출 (401 얻을 전화 아약스 상기 예상 데이터를 다시 JQuery와 $에서 HTTP (200)를 호출하는 것과 얻을 주석 처리 된 SP2013 API 호출이 있더라도).
이 웹 서비스 호출이 익명으로되어 있으며 SharePoint 2013 사이트를 대상으로 공개 될 예정입니다.
Request URL: http://host/_vti_bin/FCWebServices.svc/GetOffCanvasNavigation
Request Method: OPTIONS
Status Code: 401/Unauthorized
- Request Headers
Accept: */*
Accept-Encoding: gzip, deflate
Access-Control-Request-Headers: content-type, accept
Access-Control-Request-Method: GET
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 0
Host: fcit-mcvm2
Origin: file:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
- Response Headers
Access-Control-Allow-Origin: *
Content-Length: 16
Content-Type: text/plain; charset=utf-8
Date: Mon, 06 Jun 2016 14:50:50 GMT
Location: /_login/default.aspx?ReturnUrl=%2f_vti_bin%2fFCWebServices.svc%2fGetOffCanvasNavigation
MicrosoftSharePointTeamServices: 15.0.0.4569
request-id: eb85839d-472b-d06e-9fc9-c1e40fcec15a
Server: Microsoft-IIS/8.5
SPIisLatency: 155
SPRequestDuration: 1336
SPRequestGuid: eb85839d-472b-d06e-9fc9-c1e40fcec15a
WWW-Authenticate: NTLM
X-Content-Type-Options: nosniff
X-FRAME-OPTIONS: SAMEORIGIN
X-MS-InvokeApp: 1; RequireReadOnly
X-Powered-By: ASP.NET
콘솔 오류가 기록 : 여기
는 헤더가 웹 요청의 덤프입니다
HTTP401: DENIED - The requested resource requires user authentication.
(XHR): OPTIONS - http://host/_vti_bin/FCWebServices.svc/GetOffCanvasNavigation
나는 401 년대를 제거하기 위해 무엇을해야하는지 어떤 아이디어?
마크