Bug #6314
closedpfsense 2.3 Captive Portal - no file loaded
0%
Description
Hi everybody,
I just made a brand new installation of pfsense-2.3-amd64.
I configured and enabled the Captive Portal as usual on the second interface (I'm using pfsense as CP since version 2.0.2 without problems).
My (very basic) html page for the CP is:
<html>
<head>
<script src="captiveportal-lib.js"></script>
</head>
<body>
<img src="captiveportal-WiFi_Zone.png" width="40px"></img>
<form method="post" action="$PORTAL_ACTION$">
<input name="auth_user" type="text">
<input name="auth_pass" type="password">
<input name="auth_voucher" type="text">
<input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$">
<input name="accept" type="submit" value="Continue">
</form>
</body>
</html>
and captiveportal-lib.js contains only a trivial test function:
test = function(){
alert("test ok")
}
Despite the files captiveportal-lib.js and captiveportal-WiFi_Zone.png were loaded successfully using the CP File Manager, I cannot load them accessing the CP on any browser (Chrome, Firefox or whatever) on port new default port 8002.
The browser's debug console says "Uncaught SyntaxError: Unexpected token < captiveportal-lib.js:1", and no file (*.js, *.png) is loaded by the browser.
Obviously I can open the same html locally on my PC for test purpose without any error and with all the included files in place.
I tried the same html and files on a fresh pfsense-2.2.6-amd64, and everything is working as expected.
Files