mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
Add Object.freeze to prevent proto injections (#1781)
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
This commit is contained in:
parent
f046b2270c
commit
40663358d8
@ -286,6 +286,7 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
Object.freeze(Object.prototype);
|
||||||
let that = this;
|
let that = this;
|
||||||
let res = await fetch(`/api/notifications?page=${that.page}`, {
|
let res = await fetch(`/api/notifications?page=${that.page}`, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
|
Loading…
Reference in New Issue
Block a user