mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 15:32:42 +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
|
||||
if(uCallback.origin !== uProviderCallback.origin) {
|
||||
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
|
||||
if(uCallback.pathname !== uProviderCallback.pathname) {
|
||||
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