To implement Cross-Origin Resource Sharing (CORS) on OpenWRT within Luci
is actually simple.
After very long search, I have found code in uHTTPd
on gitlab, which clearly shows option for CORS
. I haven't found anything, which would describe how to actually configure it.
There is nothing in uHTTPd documentation describing this functionally, /etc/config/uhttpd
does not mention anything either.
Luckily, you can have a look into how the process is starting and what parameters is checking.
doing