1 Introduction
① For how to deploy WebGL in IIS, please refer to another article: https://editor.csdn.net/md/?articleId=131563136
② School experiments need to be connected to the iLab platform of the experiment space, and their interfaces need to be called, such as: http:// www.ilab-x.com/open/api/v2/user/validate?
2. Questions
After the experiment is packaged and deployed to IIS, it starts to report cross-domain:
3. Reason
I consulted the technicians in the experimental space by phone, and told them that there would be cross-domain access to their interfaces directly in the browser, for security reasons.
4. Solutions
Install ARR3.0 and rewrite_url
Download address: https://www.iis.net/downloads/microsoft/application-request-routing
① Install ARR 3.0 (Application Request Routing)
② Install rewrite_url
③ Restart the IIS server after installation
④ Open proxy
Click on Server -> Double click on Application-Request-Routing
Click "Server Proxy Settings"
⑤ Configure forwarding
Double-click URL rewrite
Click "Add Rule"
Click "Blank Rule" - "OK"
Configure rewrite
Use: wildcard
Mode: *open/*
Rewrite URL: http://www.ilab-x.com/open /{R:2}