Community discussions

MikroTik App
 
bronx
newbie
Topic Author
Posts: 39
Joined: Wed Feb 11, 2015 1:04 am
Location: Turin, Italy

Features Request : Add custom http header in hotspot pages

Fri Feb 13, 2015 9:27 pm

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 =)
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Features Request : Add custom http header in hotspot pages

Fri Feb 20, 2015 2:30 am

You have read the wiki?
It's already present.
http://wiki.mikrotik.com/wiki/Manual:Cu ... ng_Hotspot

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

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

Who is online

Users browsing this forum: xrlls and 117 guests