nodaryio / signed-api

0 stars 0 forks source link

Add CORS headers to allow frontend apps work without issue #19

Closed bdrhn9 closed 1 year ago

bdrhn9 commented 1 year ago

Most of client-side rendering uses javascript's built-in fetch method which is actually browser's function. And browser's takes response headers into account. Following headers are needed to be added to satisfy browsers:

 'access-control-allow-origin': '*',
 'access-control-allow-methods': '*'