You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q. NGINX에서 CORS(Cross-Origin Resource Sharing)처리할 경우 설정 방법은?
A. 요청 메소드 OPTIONS에 대한 설정을 추가하면 된다. CORS 관련 확인을 위해서 사전요청preflight이 발생한다. 이 사전요청은 OPTIONS 요청 메소드로 이루어진다. 그래서 NGINX에서 OPTIONS 요청 메소드 처리를 추가하면 된다. server { ... location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' $http_origin; add_header 'Access-Control-Allow-Methods' 'GET, POST, PATCH, DELETE, OPTIONS'; add_header 'Access-Control-A
Q. NGINX에서 CORS(Cross-Origin Resource Sharing)처리할 경우 설정 방법은?
A. 요청 메소드 OPTIONS에 대한 설정을 추가하면 된다. CORS 관련 확인을 위해서 사전요청preflight이 발생한다. 이 사전요청은 OPTIONS 요청 메소드로 이루어진다. 그래서 NGINX에서 OPTIONS 요청 메소드 처리를 추가하면 된다. server { ... location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' $http_origin; add_header 'Access-Control-Allow-Methods' 'GET, POST, PATCH, DELETE, OPTIONS'; add_header 'Access-Control-A
https://taptorestart.tistory.com/entry/Q-NGINX%EC%97%90%EC%84%9C-CORSCross-Origin-Resource-Sharing%EC%B2%98%EB%A6%AC%ED%95%A0-%EA%B2%BD%EC%9A%B0-%EC%84%A4%EC%A0%95-%EB%B0%A9%EB%B2%95%EC%9D%80
The text was updated successfully, but these errors were encountered: