Doccano: ํ•ญ์ƒ http๋ฅผ ํ†ตํ•ด ์ˆ˜ํ–‰๋˜๋Š” XHR ์š”์ฒญ์œผ๋กœ ์ธํ•ด ํ˜ผํ•ฉ ์ฝ˜ํ…์ธ  ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2019๋…„ 08์›” 05์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: doccano/doccano

์ €๋Š” 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)
question

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

@ armanrahman22 ์™€ @fnocera ๋Š” ์œ„์—์„œ ์–ธ๊ธ‰ ํ•œ ๋‘ ๋ฒˆ์งธ ์ ‘๊ทผ ๋ฐฉ์‹์„ ๊ตฌํ˜„ํ•˜๋Š” pull ์š”์ฒญ์„ ์ž‘์—… ์ค‘์ž…๋‹ˆ๋‹ค. ๊ณง ์ˆ˜์ •์ด ์ค€๋น„ ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๋ชจ๋“  3 ๋Œ“๊ธ€

๋ฌธ์ œ๋ฅผ ์ผ์œผํ‚ค๋Š” ๊ฐ€์ ธ ์˜ค๊ธฐ๊ฐ€ Django Rest Framework ํŽ˜์ด์ง€ ๋งค๊น€ ๋งํฌ์ด๊ณ  Django ์„œ๋ฒ„๊ฐ€ HTTPS ๋’ค์—์„œ ํ˜ธ์ŠคํŒ…๋œ๋‹ค๋Š” ์‚ฌ์‹ค์„ ์ธ์‹ํ•˜์ง€ ๋ชปํ•˜๋Š” ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ž…๋‹ˆ๋‹ค. ํด๋ผ์ด์–ธํŠธ ์ธก https๊ฐ€ ํŽ˜์ด์ง€ ๋งค๊น€ (๊ตฌ์„ฑ ๋ณ€๊ฒฝ)๊ณผ ํ•จ๊ป˜ ์ž‘๋™ํ•˜๋ ค๋ฉด SECURE_PROXY_SSL_HEADER ๋ฅผ ์„ค์ •ํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋˜๋Š” DRF ํŽ˜์ด์ง€ ๋งค๊น€์—์„œ Vue์—์„œ ์ˆ˜์‹  ํ•œ URL์„ ์‚ฌํ›„ ์ฒ˜๋ฆฌํ•˜๊ณ  ํ•ญ์ƒ ํ”„๋ŸฐํŠธ ์—”๋“œ ์›๋ณธ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋งํฌ์— ์ง€์ •๋œ ๋ช…์‹œ ์  ์›๋ณธ ๋Œ€์‹  ์š”์ฒญ์„ ์ˆ˜ํ–‰ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค (์ฝ”๋“œ ๋ณ€๊ฒฝ).

@ armanrahman22 ์™€ @fnocera ๋Š” ์œ„์—์„œ ์–ธ๊ธ‰ ํ•œ ๋‘ ๋ฒˆ์งธ ์ ‘๊ทผ ๋ฐฉ์‹์„ ๊ตฌํ˜„ํ•˜๋Š” pull ์š”์ฒญ์„ ์ž‘์—… ์ค‘์ž…๋‹ˆ๋‹ค. ๊ณง ์ˆ˜์ •์ด ์ค€๋น„ ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

https://github.com/chakki-works/doccano/pull/328 ์€ ํ˜ผํ•ฉ ์ฝ˜ํ…์ธ  ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•ฉ๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰