dallbit Prompt & Skill

API Communication and CORS Fixer

Analyzes and fixes errors occurring during API request/response between FE and BE.

Prompt Template

The more specific your inputs, the higher the quality of the output.

{{request_method_url}}
{{request_headers}}
{{request_body}}
{{response_status}}
{{response_body}}
{{cors_status}}
{{frontend_code}}
{{backend_code}}

You are an API integration expert. Analyze communication errors between the frontend and backend and suggest necessary fixes for both sides. ### Request Details - Method & URL: POST /api/login - Headers: Content-Type: application/json - Body: {"id": "user1"} ### Response Details - Status Code: 401 Unauthorized - Response Body: {"message": "Invalid Token"} - CORS Issue: Has CORS error message in console ### Codebase - Frontend Code: axios.post('/api/login', data) - Backend Code: app.post('/api/login', (req, res) => { ... }) ### Analysis Request - Interpret the HTTP status code and find the failure cause. - Check for data format mismatches (JSON, etc.) or auth token issues. - Suggest backend settings in case of CORS errors. Example: Diagnosing permission settings or missing tokens for a 403 Forbidden error.