2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Fixing Vulnerability A Fortify Scan finds a critical Cross-Site Scrip… (#2451)

* Fixing Vulnerability A Fortify Scan finds a critical Cross-Site Scripting

* use var insted of const
This commit is contained in:
Wataru
2019-10-09 09:23:34 +09:00
committed by Felipe Martins
parent 4f189ec80c
commit 19969b4fbd
3 changed files with 13 additions and 0 deletions
@@ -8,4 +8,8 @@ describe('helpers::isURLSameOrigin', function () {
it('should detect different origin', function () {
expect(isURLSameOrigin('https://github.com/axios/axios')).toEqual(false);
});
it('should detect xss', function () {
expect(isURLSameOrigin('https://github.com/axios/axios?<script>alert("hello")</script>')).toEqual(false)
})
});