question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi! I am using React with Axios to fetch Medium articles. When I am using cors-anywhere, it do not works.

axios.get('https://cors-anywhere.herokuapp.com/https://medium.com/feed/@yunisdev')
            .then(response => {
                parseString(response.data, (err, res) => {
                    console.log(res)
                })
            })
            .catch(err => {
                console.log(err)
            })

I have a code like this. It returns an error : GET https://cors-anywhere.herokuapp.com/https://medium.com/feed/@yunisdev 401 (Unauthorized)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Rob--Wcommented, Feb 6, 2021

@kthy If you saw 403, try again - see the issue (including latest comment from me - I have just updated/restarted the server).

Note: My server does not send the 401 response header. If you see 401, then that’s the actual response from the URL that you’re requesting.

0reactions
kthycommented, Feb 5, 2021

Right, but I thought it would be usable after doing the challenge?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Quickly Fix the 401 Unauthorized Error (5 Methods)
The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid authentication credentials for the ...
Read more >
401 Error: 5 Ways to Troubleshoot and Fix It
The 401 Unauthorized error indicates that the server's request was not verified because it lacks valid authentication credentials for the target ...
Read more >
How to Fix a 401 Unauthorized Error?
The 401 Unauthorized Error is an HTTP status code error that represented the request sent by the client to the server that lacks...
Read more >
How to Fix a 401 Unauthorized Error
The 401 Unauthorized error is an HTTP status code that means the page you were trying to access cannot be loaded until you...
Read more >
What is a 401 Error and How Do You Fix It?
A 401 Authorization Required error means you can try accessing the resource again using the correct credentials. In other words, it's often a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found