티스토리 뷰
1. 전자정부프레임워크 사용
2. web.xml 추가
<!-- http method 제한 -->
<security-constraint>
<display-name>Forbidden</display-name>
<web-resource-collection>
<web-resource-name>Protected Context</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
<http-method>TRACE</http-method>
<http-method>COPY</http-method>
<http-method>MOVE</http-method>
<http-method>OPTIONS</http-method>
</web-resource-collection>
<auth-constraint>
<role-name></role-name>
</auth-constraint>
</security-constraint>
3. 그래도 http method 처리가 안되었다.
<servlet>
~~
<init-param>
<param-name>dispatchOptionsRequest</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
참고 : http://blog.naver.com/duco777/220765466402
https://psage.tistory.com/entry/HTTP-Method-%EC%A0%9C%ED%95%9C
끝.
'웹개발자 > 웹서버' 카테고리의 다른 글
nginx nodejs 연동 (0) | 2019.03.25 |
---|---|
라즈베리파이 nginx 설치 (0) | 2019.03.25 |
http method 제한 (trace) (2) | 2019.01.14 |
tomcat 사진파일 업로드 경로 설정 (0) | 2017.11.03 |
tomcat 한글깨짐 utf-8 인코딩 설정 (0) | 2017.10.18 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 블루스택
- nginx
- 시즌패스
- download
- Spring
- 전자정부프레임워크
- lineage2m
- 메소드 제한
- 베트남
- 단축키
- 로블록스
- 라즈베리파이
- autohotkey
- mysql
- 설치
- 시즌3
- 다운로드
- 오토핫키
- 구글 플레이 게임즈
- Spring Boot
- tomcat
- eGovFramework
- 수원
- 배드워즈
- mariaDB
- 호이안
- 설정
- 윈도우
- 달빛조각사
- java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함