carcabot / tiktok-signature

Generate tiktok signature token using node
733 stars 283 forks source link

add bypassCSP #185

Closed stevezheng closed 1 year ago

carcabot commented 1 year ago

Hi there, Can you explain what is doing this option?

stevezheng commented 1 year ago

error - unhandledRejection: frame.addScriptTag: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'nonce-a6df7a86a8e9f6264dd640aa29141ff8' 'unsafe-eval' sf16-website-login.neutral.ttwstatic.com s20.tiktokcdn.com *.tiktokcdn-us.com". Either the 'unsafe-inline' keyword, a hash ('sha256-jqHbOq7TVQ0O0VunpMh0Z0RBTqBQTJ+/eAfmhtgTQms='), or a nonce ('nonce-...') is required to enable inline execution.

PATAPOsha commented 1 year ago

@carcabot I explained here https://github.com/carcabot/tiktok-signature/issues/186 This does fix the issue, but maybe its better to somehow pin palywright/chrome version in the requirements, since this issue started couple of days ago but no changes were made in repo.