Skip to content

fix: add Vercel URL to CORS allowed origins#2

Merged
Codewithaiyan merged 2 commits into
masterfrom
fix/cors-update
May 27, 2026
Merged

fix: add Vercel URL to CORS allowed origins#2
Codewithaiyan merged 2 commits into
masterfrom
fix/cors-update

Conversation

@Codewithaiyan
Copy link
Copy Markdown
Owner

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vibe-guard Ready Ready Preview, Comment May 27, 2026 6:30pm

@github-actions
Copy link
Copy Markdown

🛡️ VibeGuard Security Scan Results

File Trust Score Risk Level
backend/main.py 70/100 MEDIUM

Vulnerabilities Found

backend/main.py

  • MEDIUM Hardcoded Secrets (Line 10)
    Description: The code uses environment variables to load configuration, but if the .env file is exposed or contains hardcoded secrets, it can lead to security issues.
    Fix suggestion: Ensure that the .env file is not included in version control and use secret management solutions for sensitive data.
  • MEDIUM Missing Input Validation (Line 26)
    Description: The '/scan' endpoint does not validate the content of the 'code' field, which could lead to code injection or other attacks.
    Fix suggestion: Implement input validation and sanitization for the 'code', 'language', and 'filename' fields.
  • LOW CORS Configuration (Line 17)
    Description: The CORS configuration allows all methods and headers, which may expose the API to CSRF attacks.
    Fix suggestion: Restrict allowed methods and headers to only those that are necessary for the application.

Powered by VibeGuard 🛡️

@Codewithaiyan Codewithaiyan merged commit 78b0a81 into master May 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant