์ ๋ https
๋ฅผ ํตํด ๋ด๋ถ์ ์ผ๋ก doccano๋ฅผ ์ ๊ณตํ๊ณ ์์ต๋๋ค. http
๋ฅผ) ํตํด ์ ๊ณต ํ ๋ ๋ชจ๋ ๊ฒ์ด ์ ์๋ํ์ง๋ง https
๋ก ์ ํํ๊ณ ์ ๋ฐ์ดํฐ ํ์ด์ง์ ์ฃผ์์ ์ถ๊ฐํ๋ ค๊ณ ํ๋ฉด ์ฝ์์์์ด ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
xhr ์์ฒญ์ ํญ์ http๋ฅผ ํตํด ์ด๋ฃจ์ด ์ง๋ฏ๋ก ์ฝํ
์ธ ๋ ๊ธฐ๋ณธ์ ์ผ๋ก ์ฐจ๋จ๋ฉ๋๋ค.
์ฝ๋๊ฐ ๋ ํ๋กํ ์ฝ ๋ชจ๋์์ ์๋ํ๋์ง ํ์ธํด ์ฃผ์๊ฒ ์ต๋๊น?
document_classification.js:1 Mixed Content: The page at 'https://doccano.example.com/projects/4/#' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://doccano.example.com/v1/projects/4/docs?doc_annotations__isnull=&limit=5&offset=5&q='. This request has been blocked; the content must be served over HTTPS.
(anonymous) @ document_classification.js:1
e.exports @ document_classification.js:1
e.exports @ document_classification.js:1
Promise.then (async)
s.request @ document_classification.js:1
s.<computed> @ document_classification.js:1
(anonymous) @ document_classification.js:1
search @ document_classification.js:8
nextPage @ document_classification.js:8
t @ document_classification.js:14
Pr.t._withTask.o._withTask @ document_classification.js:14
document_classification.js:1 Uncaught (in promise) Error: Network Error
at e.exports (document_classification.js:1)
at XMLHttpRequest.d.onerror (document_classification.js:1)
๋ฌธ์ ๋ฅผ ์ผ์ผํค๋ ๊ฐ์ ธ ์ค๊ธฐ๊ฐ Django Rest Framework ํ์ด์ง ๋งค๊น ๋งํฌ์ด๊ณ Django ์๋ฒ๊ฐ HTTPS ๋ค์์ ํธ์คํ ๋๋ค๋ ์ฌ์ค์ ์ธ์ํ์ง ๋ชปํ๋ ๊ฒ์ฒ๋ผ ๋ณด์ ๋๋ค. ํด๋ผ์ด์ธํธ ์ธก https๊ฐ ํ์ด์ง ๋งค๊น (๊ตฌ์ฑ ๋ณ๊ฒฝ)๊ณผ ํจ๊ป ์๋ํ๋ ค๋ฉด SECURE_PROXY_SSL_HEADER ๋ฅผ ์ค์ ํด์ผ ํ ์ ์์ต๋๋ค.
๋๋ DRF ํ์ด์ง ๋งค๊น์์ Vue์์ ์์ ํ URL์ ์ฌํ ์ฒ๋ฆฌํ๊ณ ํญ์ ํ๋ฐํธ ์๋ ์๋ณธ์ ์ฌ์ฉํ์ฌ ๋งํฌ์ ์ง์ ๋ ๋ช ์ ์ ์๋ณธ ๋์ ์์ฒญ์ ์ํ ํ ์๋ ์์ต๋๋ค (์ฝ๋ ๋ณ๊ฒฝ).
@ armanrahman22 ์ @fnocera ๋ ์์์ ์ธ๊ธ ํ ๋ ๋ฒ์งธ ์ ๊ทผ ๋ฐฉ์์ ๊ตฌํํ๋ pull ์์ฒญ์ ์์ ์ค์ ๋๋ค. ๊ณง ์์ ์ด ์ค๋น ๋ ๊ฒ์ ๋๋ค.
https://github.com/chakki-works/doccano/pull/328 ์ ํผํฉ ์ฝํ ์ธ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@ armanrahman22 ์ @fnocera ๋ ์์์ ์ธ๊ธ ํ ๋ ๋ฒ์งธ ์ ๊ทผ ๋ฐฉ์์ ๊ตฌํํ๋ pull ์์ฒญ์ ์์ ์ค์ ๋๋ค. ๊ณง ์์ ์ด ์ค๋น ๋ ๊ฒ์ ๋๋ค.