What you need to configure
- Enable CORS
-
Allow RANGE & OPTIONS requests
How to do it
These two back-end settings can be done directly on the Fastly portal. You can activate both OPTIONS requests and Range Requests by accessing the Content section in the Configure tab of the fastly portal.
CORS
1. Click on CREATE HEADER.
2. Fill the fields with the following:
- Name: Access-Control-Allow-Origin
- Type/Action: Response Set
- Destination: http.Access-Control-Allow-Origin
- Source: "*"
- Ignore if set: Yes
- Priority: 10
3. Click on Create and Options Requests will be activated.
OPTIONS Requests
1. Click on CREATE HEADER.
2. Fill the fields with the following:
- Name: Access-Control-Allow-Methods
- Type/Action: Response Set
- Destination: http.Access-Control-Allow-Methods
- Source: "GET, OPTIONS"
- Ignore if set: No
- Priority: 10
3. Click on Create and Options Requests will be activated.

Range Requests
1. Click on CREATE HEADER.
2. Fill the fields with the following:
- Name: Access-Control-Allow-Headers
- Type/Action: Response Set
- Destination: http.Access-Control-Allow-Headers
- Source: "Range"
- Ignore if set: No
- Priority: 10
3. Click on Attach Condition and enter the following fields:
- Type: Response
- Name: Options pre-flight
- Apply if.... : req.request ~ "GET | OPTIONS"
4. Click on SAVE AND APPLY TO THIS HEADER.
5. Click on Create and range requests will be activated.

You're now all set for delivering your streams with both Fastly and Streamroot!