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

Bugfix/admin side menu #128

Merged
merged 4 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions geweb/templates/springster/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<header id="header-wrapper" class="header-wrapper">
<div class="menu">
<ul class="menu-list">
<li id="profile" class="menu-list__item">
<!-- <li id="profile" class="menu-list__item">
{% if not user.is_authenticated %}
<a href="{% url 'user_register' %}" class="menu-list__anchor">
{% trans "Sign up" %}
Expand All @@ -16,7 +16,7 @@
{% trans "Profile" %}
</a>
{% endif %}
</li>
</li> -->
<li class="menu-list__item">
<a href="/" class="menu-list__anchor logo logo--center">
<img alt="Springster" src="{% static 'img/springster/springster-logo.svg' %}" width="97" height="24">
Expand Down
4 changes: 3 additions & 1 deletion nginx/conf.d/django.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ server {
add_header X-Frame-Options SAMEORIGIN always;
add_header X-Content-Type-Options nosniff always;
add_header Strict-Transport-Security "max-age=31536000" always;
add_header Content-Security-Policy "default-src https: 'self';" always;
# Inside your server block or location block
add_header Content-Security-Policy "default-src 'self' https:; script-src 'self' https: 'unsafe-inline' 'unsafe-eval'; style-src 'self' https: 'unsafe-inline';" always;
#add_header Content-Security-Policy "default-src https: 'self';" always;
add_header Referrer-Policy "same-origin" always;
}

Expand Down
Loading