Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.

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

Open
CobraFlow opened this issue May 10, 2016 · 0 comments
Open

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

CobraFlow opened this issue May 10, 2016 · 0 comments

Comments

@CobraFlow
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant