Requests to urls containing 'javascript' are failing
See original GitHub issueIt seems that axios v0.19.1 introduced a new bug.
The bug comes from https://github.com/axios/axios/pull/2464
All urls containing javascript
keyword is throwing XSS error. So, all following urls cannot be used in axios any more:
- https://www.javascript.com
- https://stackoverflow.com/questions/tagged/javascript
- https://www.google.com/search?q=javascript
Here is a link to regexp: https://regexr.com/4rsst
Expected behavior: axios should accept javascript
in urls
Issue Analytics
- State:
- Created 4 years ago
- Reactions:26
- Comments:13
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I honestly would deprecated 0.19.1 as soon as possible. This can cause major problem on production apps.
In addtion, all Urls containing parameter starting with on… are failing.
https://someurl?one=one
Expected behavior: axios should accept parameter starting with on