Documents
Integration with Fastly


  1. Access Fastly’s dashboard and go the CONFIGURE tab
  2. Select the service to which to enable HTTP byte serving
  3. Click the EDIT CONFIGURATION dropdown menu and select the version to edit
  4. Go to the Content menu, shown in each gif 

Set up CORS

  1. Select CREATE YOUR FIRST HEADER or + CREATE HEADER
  2. 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
  3. Click Create to add the header

Enable Options

  1. Select + CREATE HEADER on the Content menu, where we added the CORS header
  2. 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

  1. Select again + CREATE HEADER on the Content menu, where we added the Options header
  2. 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”
  3. 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.




Want to know more?

Talk to an expert