Browse Source

Merge pull request #936 from irregulator/nginx_check_cors

matrix-nginx-proxy: specify Origin header, comply with CORS
pull/937/head
Slavi Pantaleev 5 years ago
committed by GitHub
parent
commit
c7e9f04756
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      roles/matrix-nginx-proxy/tasks/self_check_well_known_file.yml

+ 4
- 0
roles/matrix-nginx-proxy/tasks/self_check_well_known_file.yml View File

@@ -12,6 +12,8 @@
follow_redirects: none follow_redirects: none
return_content: true return_content: true
validate_certs: "{{ well_known_file_check.validate_certs }}" validate_certs: "{{ well_known_file_check.validate_certs }}"
headers:
Origin: example.com
check_mode: no check_mode: no
register: result_well_known_matrix register: result_well_known_matrix
ignore_errors: true ignore_errors: true
@@ -40,6 +42,8 @@
follow_redirects: "{{ well_known_file_check.follow_redirects }}" follow_redirects: "{{ well_known_file_check.follow_redirects }}"
return_content: true return_content: true
validate_certs: "{{ well_known_file_check.validate_certs }}" validate_certs: "{{ well_known_file_check.validate_certs }}"
headers:
Origin: example.com
check_mode: no check_mode: no
register: result_well_known_identity register: result_well_known_identity
ignore_errors: true ignore_errors: true


Loading…
Cancel
Save