2023-06-02(금) const http = require('http'); // http 모듈 const PORT = 4999; // 포트번호 const ip = 'localhost'; // 로컬 호스트 const server = http.createServer((request, response) => { if (request.method === 'OPTIONS') { // 만약 리퀘스트 메소드가 OPTIONS라면 해당 코드를 실행 response.writeHead(200, defaultCorsHeader); // 200 상태 코드와 CORS 헤더로 응답 response.end(); return; } let body = []; // 요청의 본문 데이터를 저장할 배열 if (request.method ..