Есть ли способ удалить content_security_policy с помощью Talisman? - PullRequest
0 голосов
/ 28 февраля 2020

Я установил Талисман. У меня есть flask API. Когда я добавляю flask_swagger_ui, я получаю следующие ошибки:

Refused to load the stylesheet 'https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700' because it violates the following Content Security Policy directive: "style-src 'self'". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback.

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-uiD1ejCBF+BQY4HmKpovbP6UD3MuKGymMj+v0lhBlZs='), or a nonce ('nonce-...') is required to enable inline execution.

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-ezdv1bOGcoOD7FKudKN0Y2Mb763O6qVtM8LT2mtanIU='), or a nonce ('nonce-...') is required to enable inline execution.

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-b3IrgBVvuKx/Q3tmAi79fnf6AFClibrz/0S5x1ghdGU='), or a nonce ('nonce-...') is required to enable inline execution.

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-37t0pGv0l-SZroBKCJkJlA'". Either the 'unsafe-inline' keyword, a hash ('sha256-VdD52vbcqq158oxfM7ms2Arg3adoR/MYPlb75qKcZPE='), or a nonce ('nonce-...') is required to enable inline execution.

У кого-нибудь есть такая же проблема? Как вы решили эту проблему?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...