public class OriginChecker extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isOriginABrowserExtension(String origin)
Returns true if the provided origin is from a browser extension.
|
static boolean |
isOriginAllowed(javax.servlet.http.HttpServletRequest request)
Checks if request was made from a Jira domain or from a browser extension.
|
public static boolean isOriginAllowed(javax.servlet.http.HttpServletRequest request)
The method checks if
request
- the request to checkpublic static boolean isOriginABrowserExtension(String origin)
origin
- the origin to check.Copyright © 2002-2021 Atlassian. All Rights Reserved.