mirror of
https://github.com/amitshekhariitbhu/go-backend-clean-architecture.git
synced 2026-04-27 05:25:51 +03:00
[PR #15] Add CORS middleware support #21
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-backend-clean-architecture#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amitshekhariitbhu/go-backend-clean-architecture/pull/15
Author: @pinyuho
Created: 7/4/2023
Status: 🔄 Open
Base:
main← Head:add-cors-middleware-support📝 Commits (1)
dc3ae36Add CORS middleware support📊 Changes
2 files changed (+29 additions, -2 deletions)
View changed files
➕
api/middleware/cors_middleware.go(+23 -0)📝
api/route/route.go(+6 -2)📄 Description
Hi! I really appreciate your work. It helped a lot, thank you.
However, I encountered some bugs when developing on cross origin platforms(especially calling the API from local React App frontend. e.g.,
localhost:3000).Error message on Chrome DevTools:
Hope this PR would help:)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.