---
title: "init(rawValue:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/httpcookiestringpolicy/init(rawvalue:)"
---

# init(rawValue:)

Creates an HTTP cookie string policy from the given raw string.

## Declaration

```swift
init(rawValue: String)
```

## Discussion

Discussion URL Loading System ignores any policy with a raw value other than the predefined policy values: strict and lax.
