dallbit Prompt & Skill
API Communication and CORS Fixer
About
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.
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.