Hi,
I was trying to setup a simple webserver with Windows Authentication but I'm getting the following exception when I enter the username and password after the browser requests them:
Error: Can't set headers after they are sent. at SendStream.headersAlreadySent (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:361:13) at SendStream.send (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:572:10) at C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:722:12 at FSReqWrap.oncomplete (fs.js:153:5) Error: Can't set headers after they are sent. at SendStream.headersAlreadySent (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:361:13) at SendStream.send (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:572:10) at C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:722:12 at FSReqWrap.oncomplete (fs.js:153:5) Error: Can't set headers after they are sent. at SendStream.headersAlreadySent (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:361:13) at SendStream.send (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:572:10) at C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:722:12 at FSReqWrap.oncomplete (fs.js:153:5)
This is my config:
# This file needs to be in the same directory as flexsimserver.bat General: Flexsim Program Directory: %PROGRAMFILES%\FlexSim 2023\program Model Directory: %DOCUMENTS%\FlexSim 2023 Projects Port: 80 Reply Timeout (milliseconds): 10000 Max Instances (of Flexsim): 8 Max Threads Per Instance: max Ignore Auto Save Files: yes Remote Operations (security hazards): Model Uploading: no Model Downloading: no Model Deleting: no Max Upload Size (bytes): 10000000 Jobs: Flexsim Data Directory: %AllUsersProfile%\FlexSim\FlexSim23.0 Max Job Queue Length: 100 Max Job Timeout (seconds): 3600 Windows Authentication: Use Windows Authentication: yes Restrict UserGroup Directories: no Active Directory: url: ldap://dc.domainName.com baseDN: dc=domainName,dc=com username: [email protected] password: password Session: Enable: yes Secret: dqtqv4P%:P\C#Jx%fo Max Age (seconds): 3600
Running the latest webserver version from the download page on Windows 10 Pro.