You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/05/12 15:29:00 UTC

[jira] [Comment Edited] (SLING-11871) Referrer Filter - Enable Bypass for Requests with Origin Header

    [ https://issues.apache.org/jira/browse/SLING-11871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17722210#comment-17722210 ] 

Carsten Ziegeler edited comment on SLING-11871 at 5/12/23 3:28 PM:
-------------------------------------------------------------------

I might be misreading the code in the filter, but doesn't the filter only block if it is a modification request?


was (Author: cziegeler):
I might be misreading the code in the filter, but doesn't the filter only block if it a modification request?

> Referrer Filter - Enable Bypass for Requests with Origin Header
> ---------------------------------------------------------------
>
>                 Key: SLING-11871
>                 URL: https://issues.apache.org/jira/browse/SLING-11871
>             Project: Sling
>          Issue Type: Improvement
>          Components: Sling Security
>    Affects Versions: Security 1.1.24
>            Reporter: Dan Klco
>            Assignee: Dan Klco
>            Priority: Major
>             Fix For: Security 1.1.26
>
>
> The Referrer Filter in Apache Sling Security blocks requests without a Referrer or a non-allow listed Referrer. Therefore Referrer filter will also block external CORS requests which rather than using the Referrer, like standard browser requests, use the Origin header. 
> We should therefore enable bypassing the ReferrerFilter for requests containing an Origin header. These requests would need to be separately validated by something else to ensure the Origin is valid.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)