SemkoDev / field.cli

WE HAVE MOVED TO A NEW REPOSITORY
https://gitlab.com/semkodev/field.cli
ISC License
34 stars 7 forks source link

CORS in header #13

Closed cyclux closed 6 years ago

cyclux commented 6 years ago

As mentioned on Discord, would be nice to have Access-Control-Allow-Origin: * in the header for some usecases.

X-IOTA-API-Version and Content-Type are also in the Access-Control-Request-Headers of the library. As reference here the headers from http://nodes.iota.fm/ Balaner:

Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, X-IOTA-API-Version
romansemko commented 6 years ago

CORS has been added.