Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added CORS matching all routes #578

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

Kevin101Zhang
Copy link
Contributor

@Kevin101Zhang Kevin101Zhang commented Feb 22, 2024

Added a config file. Nextjs will look for a next.config.js file on 'next dev' and will use the following configurations

Functionality:

Manages HTTP response headers.
Header Configuration:

Allows any origin for all routes.
Specifies allowed methods and headers for CORS.

Result: we should be able to remove any CORS browser extensions that bypass cross-origin requests that would otherwise be restricted

@Kevin101Zhang Kevin101Zhang requested a review from a team as a code owner February 22, 2024 22:31
@Kevin101Zhang Kevin101Zhang self-assigned this Feb 22, 2024
@Kevin101Zhang Kevin101Zhang changed the title fix: added CORS matching all routes Feat: added CORS matching all routes Feb 22, 2024
@Kevin101Zhang Kevin101Zhang merged commit 7387fdc into main Feb 23, 2024
@Kevin101Zhang Kevin101Zhang deleted the 577-resolve-cors-issues-in-frontend branch February 23, 2024 18:04
@Kevin101Zhang Kevin101Zhang linked an issue Feb 23, 2024 that may be closed by this pull request
@darunrs darunrs mentioned this pull request Feb 23, 2024
@Kevin101Zhang Kevin101Zhang changed the title Feat: added CORS matching all routes feat: added CORS matching all routes Jul 24, 2024
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.

Resolve CORS issues in frontend
2 participants