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.

Requests to urls containing 'javascript' are failing

See original GitHub issue

It seems that axios v0.19.1 introduced a new bug.

The bug comes from https://github.com/axios/axios/pull/2464

All urls containing javascriptkeyword is throwing XSS error. So, all following urls cannot be used in axios any more:

Here is a link to regexp: https://regexr.com/4rsst

Expected behavior: axios should accept javascript in urls

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:26
  • Comments:13

github_iconTop GitHub Comments

11reactions
jonathanbardocommented, Jan 17, 2020

I honestly would deprecated 0.19.1 as soon as possible. This can cause major problem on production apps.

11reactions
StefanOfigocommented, Jan 9, 2020

In addtion, all Urls containing parameter starting with on… are failing.

https://someurl?one=one

Expected behavior: axios should accept parameter starting with on

Read more comments on GitHub >

github_iconTop Results From Across the Web

'Axios' PUT request to server (URL failed)
First, I created the get&put route /:user_id in the folder route/user.js and controller/user.js , so users can edit their profiles in the ...
Read more >
Class UrlFetchApp | Apps Script
A script can use the URL Fetch service to issue HTTP and HTTPS requests and receive responses. The URL Fetch service uses Google's...
Read more >
Requests and Responses — Scrapy 2.7.1 documentation
Create a Request object from a string containing a cURL command. It populates the HTTP method, the URL, the headers, the cookies and...
Read more >
JavaScript Tip: Handling a Failed HTTP Request with fetch
In this tutorial we wrap up our discussion of fetch. We take a look at how to handle a failed HTTP request. By...
Read more >
Using Service Workers - Web APIs | MDN
The matching is done via URL and various headers, just like with normal HTTP requests. Fetch event diagram. Recovering failed requests. So ...
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