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:
@@ -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)
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user