Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ The following emojis are used to highlight certain changes:

### Added

- Enabled CORS for PUT requests to `/routing/v1/ipns`.

### Changed

### Removed
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
// Add CORS.
handler = cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{http.MethodGet, http.MethodOptions},
AllowedMethods: []string{http.MethodGet, http.MethodOptions, http.MethodPut},

Check warning on line 147 in server.go

View check run for this annotation

Codecov / codecov/patch

server.go#L147

Added line #L147 was not covered by tests
MaxAge: 600,
}).Handler(handler)

Expand Down
Loading