stratumn / go-core

Stratumn's core utilities to create decentralized applications and networks
Apache License 2.0
0 stars 0 forks source link

jsonhttp: config enable CORS #476

Closed t-bast closed 6 years ago

t-bast commented 6 years ago

CORS requires options calls to be handled on all routes, so I think that the easiest way is to automatically add an OPTIONS handler on all defined routes when CORS is enabled.


This change is Reviewable

codecov[bot] commented 6 years ago

Codecov Report

Merging #476 into master will decrease coverage by 0.19%. The diff coverage is 27.27%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #476     +/-   ##
=========================================
- Coverage   70.32%   70.12%   -0.2%     
=========================================
  Files          90       90             
  Lines        5327     5346     +19     
=========================================
+ Hits         3746     3749      +3     
- Misses       1208     1219     +11     
- Partials      373      378      +5
Impacted Files Coverage Δ
fossilizer/fossilizerhttp/cmd.go 0% <0%> (ø) :arrow_up:
store/storehttp/cmd.go 0% <0%> (ø) :arrow_up:
jsonhttp/jsonhttp.go 70.32% <33.33%> (-9.94%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 62792d8...582eddb. Read the comment docs.