Documents
Integration with Fastly
- Access Fastly’s dashboard and go the CONFIGURE tab
- Select the service to which to enable HTTP byte serving
- Click the EDIT CONFIGURATION dropdown menu and select the version to edit
- Go to the Content menu, shown in each gif
Set up CORS
- Select CREATE YOUR FIRST HEADER or + CREATE HEADER
- Complete the form with the following:
- Name: Allow CORS, or a descriptive name of your choosing
- Type/Action: Response and Set
- Destination: http.Access-Control-Allow-Origin
- Source: “*”
- Ignore if set: Use the default option
- Priority: Use the default option
- Click Create to add the header
Enable Options
- Select + CREATE HEADER on the Content menu, where we added the CORS header
- Complete the form with the following:
- Name: Allow OPTIONS, or a descriptive name of your choosing
- Type/Action: Response and Set
- Destination: http.Access-Control-Allow-Methods
- Source: “GET, OPTIONS”
- Ignore if set: Use the default option
- Priority: Use the default option
Enable Range
- Select again + CREATE HEADER on the Content menu, where we added the Options header
- Create a new condition. Complete the form with the following:
- Type: Response
- Name: Range Request, or a descriptive name of your choosing
- Apply if: req.request ~ “GET | OPTIONS”
- Complete the header form with the following:
- Name: Options Range, or a descriptive name of your choosing
- Type/Action: Response and Set
- Destination: http.Access-Control-Allow-Headers
- Source: “RANGE”
- Ignore if set: Use the default option
- Priority: Use the default option
Remember to Activate this configuration version so that the changes take place.