Giter Site home page Giter Site logo

fetch-ie8's Introduction

Hi there 👋

  • 🔭 I'm currently working on various big data platforms.
  • 🌱 I’m currently learning Rust, user experience.
  • 💬 Ask me about Software development, Node.js, React, TypeScript, Redux, Python, Golang, Big data visualization, BI products.
  • 📫 How to reach me: wechat(song78423)

Camsong's GitHub stats

You can also read my articles in blog

fetch-ie8's People

Contributors

asaayers avatar calebboyd avatar camsong avatar christianalfoni avatar danez avatar dgraham avatar ionicabizau avatar iskenhuang avatar itsmattking avatar jonathanong avatar josh avatar kirill-konshin avatar knowledgecode avatar kruppel avatar lrowe avatar matthew-andrews avatar mislav avatar nikhilm avatar othree avatar undozen avatar wheresrhys avatar zeke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fetch-ie8's Issues

cross domain / http to https

does this library support cross domain requests? I didnt see the XDomainRequest object in the code from an initial glance. Is there a reason it couldnt work cross domain and would you accept a pull request for it?

fetch cache ie8

@camsong
I set {cache:'no-store'} in fetch options,but IE8 always load resource from cache(request param is the same,but cookie not. It's a new user).
I want to get resource from server.
Could you help me with this?

empty plain object cause "unsupported BodyInit type" error

fetch(url,{
    body : {},
    method : 'POST'
})

this code may cause "unsupported BodyInit type" error because of below code from fetch-ie8 source

this._initBody = function(body, options) {
      this._bodyInit = body
      if (typeof body === 'string') {
        this._bodyText = body
      } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
        this._bodyBlob = body
        this._options = options
      } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
        this._bodyFormData = body
      } else if (!body) {
        this._bodyText = ''
      } else if (support.arrayBuffer && ArrayBuffer.prototype.isPrototypeOf(body)) {
        // Only support ArrayBuffers for POST method.
        // Receiving ArrayBuffers happens via Blobs, instead.
      } else {
        throw new Error('unsupported BodyInit type')
      }
    }

IE8,IE9 Cross Origin Problem 拒绝访问

因为项目要求兼容ie8,通过各种调整目前页面已基本兼容,但是fetch跨域请求(不需要session和cookie验证)在ie8或者ie9下会报拒绝访问的错误,不知道为何,以下是请求截图和ie8下控制台截图。
image
image

getOwnPropertyNames is not necessary?

Hi

I think this requires es5-shim and es5-sham is because of getOwnPropertyNames.
A simple for...in can also deal with this scenario.
Not sure why the first commit at github uses this method.
Do you have any idea?

Willing to give a PR

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.