Package org.faceless.publisher.type
Class Origin
java.lang.Object
org.faceless.publisher.type.Origin
- All Implemented Interfaces:
Serializable
Any URL2 has an Origin associated with it,
for security filtering.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOrigin
(URL2 uri, String tostring, Origin.CrossOrigin crossOrigin, ReferrerPolicy referrerPolicy) -
Method Summary
-
Field Details
-
ROOT
-
-
Constructor Details
-
Origin
-
Origin
-
Origin
public Origin(URL2 uri, String tostring, Origin.CrossOrigin crossOrigin, ReferrerPolicy referrerPolicy)
-
-
Method Details
-
getURL
Return the URL2 of the origin. -
getCrossOrigin
Return the "CrossOrigin" field of the origin. This is typically "None", but may be set to another value to make any requests for a URL with this Origin include the "Origin" HTTP header, and honour the "Access-Control-Allow-Origin" header in the response. -
getReferrerPolicy
Set the "Referrer Policy" field of the origin. This controls the value of the "Referer" header in any requests for a resource from this origin. -
toString
-