Omada Radius server get CORS error when use https
Hi,
I am using omada to connect a captive portal via a radius server, when i choose http, I connect without worries, but when I use https I get an error from CORS
I am using : xhr.setRequestHeader("Access-Control-Allow-Origin", "*");
Please help.
Thank you.
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
@Fae Thank you for your reply.
Yes I'am using v5 on my OC200, V5.0.30, but i figured out how to let it work, not like i want but it s still o solution.
since localhost does not accept ssl so I installed the controller on a remote server, and instead of putting a local address for authentication I now use the server address and it works.
- Copy Link
- Report Inappropriate Content
@Enigma22 I'm not very familiar with Radius server. But I notice there is a note in the guide that may be helpul:
Note: From Controller 5.0, the “Access-Control-Allow-Origin:URL” field should be submitted in the HTTP header to enhance security during Cross-Origin Resource Sharing (CORS). For example, if the domain name of your External Web Portal is “www.tplinkportal.com”, you need to add “Access-Control-Allow-Origin:https://www.tplinkportal.com”.
- Copy Link
- Report Inappropriate Content
I tried everything in the pic (sorry the editor didnt allow me to write urls)
same error everytime.
- Copy Link
- Report Inappropriate Content
Dear @Enigma22,
Enigma22 wrote
I am using omada to connect a captive portal via a radius server, when i choose http, I connect without worries, but when I use https I get an error from CORS
I am using : xhr.setRequestHeader("Access-Control-Allow-Origin", "*");
I didn't find the firmware version you posted in this thread.
Are you sure you are using built-in Controller v5 on your OC200?
Different controller versions may require different configuration.
If you are using Controller v5, please refer to the following guide to configure it.
Source code template for External Web Portal (Controller 4.1.5 or above)
- Copy Link
- Report Inappropriate Content
@Fae Thank you for your reply.
Yes I'am using v5 on my OC200, V5.0.30, but i figured out how to let it work, not like i want but it s still o solution.
since localhost does not accept ssl so I installed the controller on a remote server, and instead of putting a local address for authentication I now use the server address and it works.
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 698
Replies: 4
Voters 0
No one has voted for it yet.