cors-filter icon indicating copy to clipboard operation
cors-filter copied to clipboard

How should you handle Origin = 'null' after redirect?

Open CobraFlow opened this issue 10 years ago • 0 comments

In my case, I am using a JASGI CAS SSO server.

My application redirects to the CAS server to login and then returns to my application on success.

The redirect hits the CAS server with an 'Origin' header of 'null'. The Origin header exists with a value of 'null'. This is different to a missing Origin header!

The only code that needs changing is the isValidOrigin() where an origin of 'null' should return true.

if("null".equals(origin)) return true;

Is this the correct solution or are there more issues hiding behind the scenes?

CobraFlow avatar May 10 '16 09:05 CobraFlow