Features Request : Add custom http header in hotspot pages

Dear,

It’ very usefull if you add the possibility to manually change header in hotspots pages to help our external customization.

For example:

_Output status.html page in JSONP format ( need http header content-type application/json )
_Allow cross domain ajax request on status.html page ( need http header Access-Control-Allow-Origin: http://domain1.com )

$(set-header(“Content-Type: application/json”))

I think that is not so hard to implement =)

You have read the wiki?
It’s already present.
http://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot

$(if http-header == “Content-Type”)application/json$(endif)

$(if http-header == “Access-Control-Allow-Origin”)http://domain1.com$(endif)