Skip to content

1.1.0

Choose a tag to compare

@eli-darkly eli-darkly released this 09 Jul 23:30

[1.1.0] - 2019-07-09

Added:

  • The new option skipDefaultHeaders, if set to true, makes EventSource not add the Accept and Cache-Control request headers that it would normally add. This may be necessary to avoid CORS problems in browsers if the stream URL is in another domain, since there are more restrictions on cross-origin requests that contain these headers.
  • There is a new property, EventSource.supportedOptions, that indicates which custom options are available. See "Detecting supported features" in README.md.