완료됨
Road to Localhost

/im_viewer에서
if url[0] == '/':
url = "http://localhost:8000" + url
elif ("localhost" in urlp.netloc) or ("127.0.0.1" in urlp.netloc):
data = open('error.png', 'rb').read()
img = base64.b64encode(data).decode('utf8')
return render_template('img_viewer.html', img=img)

URL을 어떻게 만들어야 이것을 통과해 localhost로 가는지 모르겠군요. 힌트좀주세요.

#web
작성자 정보
더 깊이 있는 답변이 필요할 때
드림핵 팀과 멘토에게 직접 문의해 보세요!
답변 1
Modric
질문 등록: 10

해결했습니다.

2021.04.13. 18:28