decred / dcrtime

Decred anchored timestamp client, proxy, and server.
ISC License
28 stars 23 forks source link

Set API Access-Control-Allow-Origin Value as Global #37

Closed degeri closed 5 years ago

degeri commented 5 years ago

I am attempting to build a site like "https://opentimestamps.org/" using DCRTIME.

Currently the API at "https://time-testnet.decred.org:59152/v1/timestamp/" does not have Access-Control-Allow-Origin set and a website will be unable to read the response values.

image

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin

Since its a public api Can we set "Access-Control-Allow-Origin: *" ?