Skip to content

feat(api): configure CORS in bootstrap - #319

Merged
MissBlue00 merged 1 commit into
MissBlue00:mainfrom
penielgold-hub:issue-212-cors
Jul 28, 2026
Merged

feat(api): configure CORS in bootstrap#319
MissBlue00 merged 1 commit into
MissBlue00:mainfrom
penielgold-hub:issue-212-cors

Conversation

@penielgold-hub

@penielgold-hub penielgold-hub commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Closes #212


Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Firmware version:
  • Hardware:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

@penielgold-hub is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@penielgold-hub Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@penielgold-hub

Copy link
Copy Markdown
Contributor Author

This pull request adds CORS configuration to the NestJS API bootstrap process.

The changes:

Enable CORS support in apps/api/src/main.ts.
Configure allowed origins using the CORS_ORIGIN environment variable with a local development fallback.
Define permitted HTTP methods and request headers for secure API communication.
Improve API accessibility for frontend applications while maintaining controlled cross-origin access.

@MissBlue00
MissBlue00 merged commit dd903ba into MissBlue00:main Jul 28, 2026
0 of 3 checks passed
@penielgold-hub

Copy link
Copy Markdown
Contributor Author

Thank you for reviewing and merging my contribution! I appreciate your time and feedback. I look forward to contributing to the project again.

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.

Add CORS configuration to main.ts

2 participants