mirror of
https://github.com/strapi/strapi.git
synced 2025-12-18 10:43:56 +00:00
fix: remove actual values from the validate callback errors
This commit is contained in:
parent
b2690ca50e
commit
4de25b889b
@ -26,14 +26,14 @@ module.exports = {
|
|||||||
// Make sure the different origin matches
|
// Make sure the different origin matches
|
||||||
if(uCallback.origin !== uProviderCallback.origin) {
|
if(uCallback.origin !== uProviderCallback.origin) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Forbidden callback provided: origins don't match ${uCallback.origin} !== ${uProviderCallback.origin})`
|
`Forbidden callback provided: origins don't match. Please verify your config.`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure the different pathname matches
|
// Make sure the different pathname matches
|
||||||
if(uCallback.pathname !== uProviderCallback.pathname) {
|
if(uCallback.pathname !== uProviderCallback.pathname) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Forbidden callback provided: pathname don't match ${uCallback.pathname} !== ${uProviderCallback.pathname})`
|
`Forbidden callback provided: pathname don't match. Please verify your config.`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user