bykof / cordova-plugin-webserver

A webserver plugin for cordova
Other
119 stars 51 forks source link

cors header #32

Closed ajayashuba closed 5 years ago

ajayashuba commented 5 years ago

how do set cors headers in response

bykof commented 5 years ago

This should be your response object

{
    status: 200,
    body: '',
    headers: {
        'Access-Control-Allow-Origin': '*' 
    }
}