PolymerElements / platinum-sw

Service Worker Polymer element
67 stars 16 forks source link

add a parameter to include credentials #108

Open steventill opened 8 years ago

steventill commented 8 years ago

Description

Add a property that when set includes the credentials http://www.html5rocks.com/en/tutorials/service-worker/introduction/ // see the section on the defaults of fetch

Expected outcome

when set to true, passes sets the credentials flag and uses that when fetching resources

Actual outcome

does not use the credentials (Note: also ignores the mode: 'no-cors' attribute when fetching)

Steps to reproduce

<platinum-sw-register skip-waiting clients-claim reload-on-install state="{{state}}"> <platinum-sw-cache default-cache-strategy="networkFirst" precache="{{precacheList}}" credentials="true">

Browsers Affected

Feature request !-- all browsers