CORS (3) 썸네일형 리스트형 CORS on Nginx location ~ \.php$ { try_files $uri /index.php =404; #root public; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_intercept_errors on; fastcgi_param SCRIPT_FILENAME d:/dev/nginx/freemusic/public$fastcgi_script_name; include fastcgi_params; add_header Access-Control-Allow-Origin *; } nginx 다시시작windows commandcmd > nginx.exe -s reopen Google chrome 에서 localhost Ajax CORS 발생시 localhost로 웹 개발 시 Ajax 호출시 CORS 가 발생하기도 하는데 이를 해결하는 간단한 방법이 있는데요. 구글 확장기능 검색 창에서 "Allow-Control-Allow-Origin" 검색 설치 후 크롬 메뉴바에서 손쉽게 on/off 할 수 있습니다. CORS 해결방법 web.config 에서 추가 .. 이전 1 다음