Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- RabbitMQ Python
- JBoss JDK
- ClassNotdefFound
- RabbitMQ 테스트
- WebLogic Stack Size
- log4j 보안취약
- AWS Certified Cloud Practitioner
- iPlanet cors
- AWS Practitioner 공부
- JBoss OS
- Stack Size
- webserver cors
- WebLogic 사설인증서
- org.glassfish.jersey.internal.Errors logErrors
- WebLogic 데모 인증서 먼저 인식
- OPSS DemoIdentity
- was log4j
- WebLogic log4j
- RabbitMQ Tuttorials
- weblogic 500 error
- 다테 민속촌
- JBoss Support
- iPlanet7
- AWS module 1
- Tomcat
- ams 자격증 준비
- weblogic jersey
- 1024k
- JBoss7
- jersey servlet error
Archives
- Today
- Total
개인 저장용 블로그
[iPlanet] iPlanet7 CORS 설정 본문
CORS 설정 전에 CORS에 간략히 설명하자면 아래와 같다.
CORS는 Corss-Origin Resource Sharing 으로 HTTP Header 기반의 메커니즘으로 브라우저가 Resource Road를 허용해야 하는 출처 이외의 모든 출처(도메인, 스키마 또는 포트)를 서버가 표시 할 수 있도록 하는 설정이다.
고객사에서 아래와 같이 3개의 도메인에 대해 CORS 설정을 요청하였다.
a.koreainvestment.com
b.koreainvestment.com
c.koreainvestment.com
1. CORS 설정 방법
${component-name}-obj.conf 파일에서 아래와 같은 내용을 추가한다.
<If defined $headers{'Origin'} and $headers{'Origin'} =~ '^(.*)\.(koreainvestment)\.com$'> Output fn="set-variable" insert-srvhdrs="Access-Control-Allow-Origin=$headers{'Origin'}" </If> |
이후 component를 shutdown 후 admin-console에서 deploy 후 component를 다시 running 하면 된다.
2. CORS 확인 방법
해당 설정이 iPlanet 단에서 정상적으로 동작하는지 확인 하는 방법으로는 아래와 같다.
oracle@uclick ~]$ curl http://localhost -H "Origin: https://a.koreainvestment.com" --verbose * About to connect() to localhost port 80 (#0) * Trying ::1... * Connection refused * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 80 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.29.0 > Host: localhost > Accept: */* > Origin: https://a.koreainvestment.com > < HTTP/1.1 302 Moved Temporarily < Server: Oracle-iPlanet-Web-Server/7.0 < Date: Fri, 18 Nov 2022 00:31:09 GMT < Location: https://file.a.com/ < Content-length: 0 < * Connection #0 to host localhost left intact |
Header 부분에 설정 도메인이 정상적으로 나오는지 확인한다.
* 참고
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
'Oracle Fusion Middleware > FMW' 카테고리의 다른 글
[FMW] WebLogic Clustering VS Coherence Clustering (0) | 2022.11.07 |
---|---|
Renew Expired OPSS DemoIdentity (1) | 2022.10.11 |
Minimum Requirements for the Linux Operating System (0) | 2022.01.05 |
FMW 12c install (0) | 2022.01.05 |