Skip to content

Commit a85a59f

Browse files
committed
add CSRF tweak in settings
1 parent 25a1a72 commit a85a59f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

playbooks/update_andes.yml

+10
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
ansible.builtin.pip:
2424
requirements: "{{ andes_dir }}/special_requirements.txt"
2525

26+
- name: add tweak in settings.py
27+
ansible.builtin.lineinfile:
28+
path: "{{ andes_dir}}/andes/settings.py"
29+
line: SECURE_CROSS_ORIGIN_OPENER_POLICY = None
30+
31+
- name: add another tweak in settings.py
32+
ansible.builtin.lineinfile:
33+
path: "{{ andes_dir}}/andes/settings.py"
34+
line: CSRF_TRUSTED_ORIGINS = ['http://iml-science-1.ent.dfo-mpo.ca']
35+
2636
- name: Django Check
2737
command: /usr/bin/python3 {{ andes_dir }}/manage.py check
2838

0 commit comments

Comments
 (0)