javascript - CORS Support in Asterisk PBX Web Server -


aterisk pbx has built-in web server, trying login asterisk pbx through ami on http local computer. problem when call login action on http manager connected response's mime type "text/plain", need mime type "text/javascript". error below raised in chrome developer tool:

resource interpreted script transferred mime type text/plain: http://172.16.100.100:8088/asterisk/rawman?action=login&username=username&secret=pass&_=1394447007551". hyperlink "http://localhost:16328/scripts/jquery-1.10.2.js"jquery-1.10.2.js:8516 

it simple server, not designed give correct mime-type.

you have 3 options

1) load jquery google cdn

2) put javascript inside html page.

3) extend server(it opensource, remember?) need.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -