Кадр-фондоры CSP не наблюдаетсяJavascript

Форум по Javascript
Anonymous
Кадр-фондоры CSP не наблюдается

Сообщение Anonymous »

Я получаю следующую ошибку: отказался создавать «», потому что предок нарушает следующую директиву безопасности безопасности: «Осовые фармии». Я включил следующее в свой staticwebapp.config.json :
"globalHeaders": {
"Content-Security-Policy": "frame-ancestors 'self' https://alpha.sso.###.com https://sso.###.com;"
}
< /code>
и в заголовках ответов я вижу: < /p>
content-security-policy
frame-ancestors 'self' https://alpha.sso.###.com https://sso.###.com

Так почему же он думает, что моя политика фрейм-анестеров не является?frame-ancestors 'self' https://localhost:5001/
< /code>
Я попробовал с и без Trailing /< /p>
Теперь я получаю следующую ошибку: < /p>
Refused to frame 'https://localhost:5001/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' https://localhost:5001/".


Подробнее здесь: https://stackoverflow.com/questions/797 ... g-observed

Вернуться в «Javascript»