setting Access-Control-Allow-Origin in nanohttpd

973 Views Asked by At

I have a cordova application that uses nanoHttpd to serve files. How do i set Access-Control-Allow_origin for the files served by nanoHttpd. I went through source code of the server, but I was not able to find how to set this header.

Note: The xmlhttp request is done from child browser plugin

1

There are 1 best solutions below

1
On

Perform the white listing of the server

<access origin="*" />