Omada Radius server get CORS error when use https

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Omada Radius server get CORS error when use https

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Omada Radius server get CORS error when use https
Omada Radius server get CORS error when use https
2022-05-19 14:44:12 - last edited 2022-05-26 07:55:02
Model: OC200  
Hardware Version: V5
Firmware Version: 5.0.3 Build 20211022 Rel. 31831

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.

  0      
  0      
#1
Options
1 Accepted Solution
Re:Omada Radius server get CORS error when use https-Solution
2022-05-26 07:54:22 - last edited 2022-05-26 07:55:02

  @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.

Recommended Solution
  0  
  0  
#5
Options
4 Reply
Re:Omada Radius server get CORS error when use https
2022-05-20 06:27:05 - last edited 2022-05-20 06:27:19

  @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”.

  0  
  0  
#2
Options
Re:Omada Radius server get CORS error when use https
2022-05-20 18:56:09

  @Somnus 

I tried everything in the pic (sorry the editor didnt allow me to write urls)

same error everytime.

  0  
  0  
#3
Options
Re:Omada Radius server get CORS error when use https
2022-05-24 07:57:03

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)

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#4
Options
Re:Omada Radius server get CORS error when use https-Solution
2022-05-26 07:54:22 - last edited 2022-05-26 07:55:02

  @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.

Recommended Solution
  0  
  0  
#5
Options