impress icon indicating copy to clipboard operation
impress copied to clipboard

Support CORS headers

Open MarhiievHE opened this issue 3 years ago • 0 comments

At this moment, API on impress has fixed headers for CORS. This is not always appropriate especially if we want to restrict requests from other websites. Let's put in the server config the ability to set the Access-Control-Allow-Origin header. For example, adding to the server config:

cors: {
   origin: 'string',
},

Then in the metacom we can use the values from cors.origin in the response headers.

MarhiievHE avatar Oct 29 '21 11:10 MarhiievHE