-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: login button is not working cause of javascript #2484
Comments
Hey there, @amogh007! 👋 I'm Dosu, a bot here to lend a hand with bugs, answer your questions, or help you dive into contributing while you're waiting for a human maintainer to swing by. Think of me as your friendly neighborhood assistant in the digital realm! I've caught sight of your issue about the login button not working due to a JavaScript hiccup, and I'm rolling up my virtual sleeves to dig into it. I'll be back with a more detailed response in a jiffy! |
ok |
this is the i error i am getting in console "Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword" i changed it to use inline script in next.conf.js but still error exists |
The error you're encountering is due to the Content Security Policy (CSP) blocking the execution of an inline script because of the directive
For example, to allow a specific inline script using a hash: "script-src": [
"'sha256-Base64EncodedHashOfTheScript'",
// other sources...
], Or, using a nonce: "script-src": [
"'nonce-RandomValue'",
// other sources...
], This approach requires dynamically generating the hash or nonce for each request. These steps are aimed at troubleshooting and potentially resolving the CSP issue related to inline scripts in your Next.js application. If you're still facing issues, providing the exact JavaScript code for the login button and any specific error messages from the console when the issue occurs could help pinpoint the problem more accurately.
|
What happened?
when i run application application runs properly login page will open but login button is not working
Relevant log output
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: