Giter Site home page Giter Site logo

gh-pinned-repos's Introduction

gh-pinned-repos's People

Contributors

connorcairns avatar dependabot[bot] avatar egoist avatar ikathuria avatar joseluisgs avatar kapcash 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

gh-pinned-repos's Issues

Forks are zero

Unable to fetch forks (defaults to zero).

API Responds with zero but repo actually has 35 forks
image

image

[Bug] "owner" property has "/" at the end

"owner" property has "/" at the end. This introduced not a breaking change but quite an awful design.
Double slashes in the content
Surprisingly my own repos don't have this problem, it only happens for organization repos..

Problems with CORS policy

Hi.
I have a problem form Cors policy. My website worked ok, but now fails when try to get my repo info,
Could you help me?

https://joseluisgs.github.io/proyectos/#repositorio (My website) I use a Vue component in my VuePress page
This is my component
https://github.com/joseluisgs/joseluisgs/blob/master/web/docs/.vuepress/components/ReposPinned.vue

I get the repo info with
async mounted() {
// https://gh-pinned-repos.now.sh/
const response = await fetch("https://gh-pinned-repos.now.sh/?username=joseluisgs");
const data = await response.json();
this.repositorios = data;
}

But, now, I have this problem
Access to fetch at 'https://gh-pinned-repos.vercel.app/?username=joseluisgs' (redirected from 'https://gh-pinned-repos.now.sh/?username=joseluisgs') from origin 'https://joseluisgs.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I try to add no-cors value, or change to use axios, but I always have the same problem
const url = 'https://gh-pinned-repos.now.sh/?username=joseluisgs';
const config = {
method: 'GET',
mode: 'no-cors',
};
try {
const response = await axios.get(url, config);
console.log(response.data);
} catch (error) {
console.error(error);
}

I checked your project and you have
/* allow cors from any origin /
res.setHeader('Access-Control-Allow-Origin', '
')
res.setHeader('Access-Control-Request-Method', '')
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET')
res.setHeader('Access-Control-Allow-Headers', '
')

Please, coudl yopu help me to solve it

Thank you very much
Jose

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.