Firefox 브라우저 부가 기능
  • 확장 기능
  • 테마
    • Firefox용
    • 사전 및 언어 팩
    • 다른 브라우저 사이트
    • Android 부가 기능
로그인
Moq - Mock API Requests 미리보기

Moq - Mock API Requests 제작자: Pavel Shpakovich

Mock HTTP requests with custom responses, status codes, delays, and headers. Perfect for development, testing, and debugging.

0 (리뷰 0개)0 (리뷰 0개)
사용자 5명사용자 5명
Firefox를 다운로드하고 확장 기능을 받으세요
파일 다운로드

확장 메타 데이터

스크린샷
정보
Moq - Powerful API Mocking for Chrome DevTools

Moq is a developer tool that intercepts and mocks HTTP requests directly in your browser, eliminating the need to modify backend code or wait for API changes during frontend development.

WHY INSTALL MOQ?

✓ Speed Up Development - Test different API responses instantly without backend changes or server restarts
✓ Isolated Testing - Work offline or test edge cases (errors, timeouts, specific data) that are hard to reproduce
✓ No Code Changes - Mock requests at the browser level without touching your application code
✓ Real Time Control - Enable/disable mocks on-the-fly, perfect for comparing real vs mocked responses

KEY FEATURES

→ Client-Side Interception
Captures fetch() and XMLHttpRequest before they reach the network

→ Full Response Control
Set custom status codes (200, 404, 500), response bodies, headers, and delays

→ Proxy Rules
Route matching requests through a custom proxy target instead of returning a mock response
• Redirect requests to any base URL (e.g. staging, local server)
• Optional path rewrite with from/to pattern (plain string or regex)
• Attach JavaScript response hooks to transform proxied responses
• Conflict detection warns when a proxy rule overlaps with a mock rule
• Hit counters track how many times each proxy rule is triggered
• Import/Export proxy rules independently from mock rules

→ Response Hooks with JavaScript
Write code to transform responses dynamically (both mock and real)
• Toggle hooks on/off without deleting code
• Comprehensive validation catches undefined variables and syntax errors
• Available globals: response, request, helpers (uuid, timestamp, random data)

→ Two Response Modes
• Mock Mode - Return configured mock response with your custom data
• Passthrough Mode - Forward request to real server and transform response with JavaScript hook

→ Dynamic Variables
Generate unique data with {{timestamp}}, {{uuid}}, {{random_number}}, {{random_string}} in responses

→ Request Recording & Logging
Record and inspect actual network traffic, create mocks from real responses with one click

→ Smart Organization
Group rules into folders, search and filter, bulk enable/disable, hit counters show usage
• Compact and detailed view modes for both Rules and Proxy tabs

→ Rule Validation & Warnings
Automatic detection of invalid regex, JSON errors, overlapping rules, and unused rules

→ Import/Export with Preview
Share rule configurations with merge or replace modes, validate before importing

→ Multi-Monitor Support
Open in standalone window or DevTools panel, full state synchronization

→ Dark/Light Theme
System preference detection with manual override

→ CORS Auto-Fix
Automatically inject CORS headers to bypass cross-origin restrictions

→ Multi-Language
Full English and Russian translations

USE CASES & BENEFITS

FOR FRONTEND DEVELOPERS:
• Test different API responses without backend changes
• Redirect API calls to a local or staging server with Proxy Rules
• Work offline or before backend APIs are ready
• Validate error handling with custom error responses
• Test loading states with configurable delays

FOR QA ENGINEERS:
• Simulate edge cases that are hard to reproduce
• Test timeout scenarios and network failures
• Validate UI with specific data combinations
• Automate testing with exported rule configurations

FOR DEBUGGING:
• Modify production API responses locally for troubleshooting
• Proxy requests to a different environment without changing application code
• Compare real vs mocked responses side-by-side
• Track request/response patterns with hit counters
• Organize test scenarios into folders for different features

PRIVACY & SECURITY

✓ No data collection
✓ No external servers
✓ All data stored locally in your browser
✓ Open source and transparent

GETTING STARTED
  1. Open Chrome DevTools (F12)
  2. Click the "Moq" tab
  3. Create your first mock rule with URL pattern matching
  4. Enable recording to capture real requests
  5. Click "Mock This" on any logged request to create a rule instantly
  6. Use Proxy Rules to redirect requests to a different server without changing your code

Perfect for frontend developers, QA engineers, and anyone who needs to test API integrations without modifying backend code or waiting for server changes. All data stays local - no external servers, no data collection, complete privacy.
0명이 0점으로 평가함
로그인하여 이 확장 기능의 평점을 남겨주세요
아직 평점이 없습니다

별점 저장됨

5
0
4
0
3
0
2
0
1
0
아직 리뷰 없음
권한 및 데이터

필수 권한:

  • 모든 페이지의 콘텐츠 차단
  • 열려있는 탭의 데이터에 접근하도록 개발자 도구 확장
  • 브라우저 탭에 접근
  • 모든 웹사이트에서 사용자의 데이터에 접근

선택적 권한:

  • 모든 웹사이트에서 사용자의 데이터에 접근

데이터 수집:

  • 개발자가 이 확장 기능은 데이터 수집이 필요하지 않다고 합니다.
더 알아보기
추가 정보
부가 기능 링크
  • 지원 사이트
  • 지원 이메일
  • Copy add-on ID
버전
2.15.6
크기
392.32 KB
마지막 업데이트
한 달 전 (2026년 4월 22일)
관련 카테고리
  • 웹 개발 도구
라이선스
Mozilla Public License 2.0
개인정보처리방침
이 부가 기능에 대한 개인정보처리방침 읽기
버전 목록
  • 모든 버전 보기
모음집에 추가
이 부가 기능 신고
Mozilla 홈페이지로 이동

부가 기능

  • 소개
  • Firefox 부가 기능 블로그
  • 확장 기능 워크샵
  • 개발자 허브
  • 개발자 정책
  • 커뮤니티 블로그
  • 포럼
  • 버그 신고
  • 리뷰 지침

브라우저

  • Desktop
  • Mobile
  • Enterprise

제품

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 개인 정보
  • 쿠키
  • 법률

특별한 고지가 없는 한, 본 사이트의 콘텐츠는 Commons Attribution Share-Alike License v3.0 또는 그 이후 버전에 따라 사용이 허가됩니다.