Skip to content
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

Le javascript n'est pas chargé en préprod #50

Closed
marc-bouvier opened this issue May 3, 2024 · 4 comments
Closed

Le javascript n'est pas chargé en préprod #50

marc-bouvier opened this issue May 3, 2024 · 4 comments

Comments

@marc-bouvier
Copy link
Contributor

Attendu

Comme en prod : https://test.iroco.co/signup

Possibilité de déplier / replier les details de l'offre (depuis la page /signup)

image

image

Obtenu

En préprod : https://test.iroco.co/signup

L'offre ne de déplie pas et une erreur de chargement de script est présente.

Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-EdMWcB5M/tE3nmOhhR2ApTFLS7gvTf9a9kbfLD66Q+o='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

image

@marc-bouvier
Copy link
Contributor Author

iroco.co/signup

image

test.iroco.co/signup

image

@marc-bouvier
Copy link
Contributor Author

marc-bouvier commented May 3, 2024

Correction: suppression d'un header qui était ajouté à tort dans la conf globale nginx.

Nous pouvons supprimer ce fichier de configuration (qui n'était pas utilisé de toute façon)

Ligne en trop dans la conf nginx.conf sur le serveur de test.

add_header Content-Security-Policy "default-src 'self';" always;

@marc-bouvier
Copy link
Contributor Author

marc-bouvier commented May 3, 2024

@marc-bouvier
Copy link
Contributor Author

Réglé en rechargeant la config nginx du serveur test.iroco.co

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant