Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update develop with hotfixes from master. #59

Merged
merged 13 commits into from
Jun 9, 2022
Merged

Update develop with hotfixes from master. #59

merged 13 commits into from
Jun 9, 2022

Conversation

ltshb
Copy link
Contributor

@ltshb ltshb commented Jun 9, 2022

No description provided.

ltshb and others added 13 commits November 3, 2021 12:56
New Release v1.1.0 - #minor
New Release v1.2.0 - #minor
New Release v1.2.1 - #patch
New Release v1.2.2 - #patch
New Release v1.3.0 - #minor
New Release v1.4.1 - #patch
New Release v1.5.0 - #minor
New Release v1.5.1 - #patch
In the case where the request is done from a subdomain the Origin header and
the Sec-Fetch-Site headers were set. The later was however not set to
'same-origin' but 'same-site' because the origin is not equal but from a subdomain.

Due to this the validation failed because we only allowed Sec-Fetch-Site==same-origin.
This would also have been an issue if we would allow a cross site origin in
the allowed domain, in this case the Sec-Fetch-Site would be 'cross-site'.

So changed the validation logic to be clearer and correct. The validation is
done only on the Origin header with a first fallback to Sec-Fetch-Site if Origin
is not available and a last fallback to Referer header if the previous are
not available.
@ltshb ltshb changed the title Master Update develop with hotfixes from master. Jun 9, 2022
@ltshb ltshb requested a review from jedef June 9, 2022 08:44
@ltshb ltshb merged commit 94d0c58 into develop Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants