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

Comment out HTTP/HTTPS Fix in Docs to Cove proxy #2

Closed
odscjames opened this issue Aug 14, 2019 · 0 comments · Fixed by #48
Closed

Comment out HTTP/HTTPS Fix in Docs to Cove proxy #2

odscjames opened this issue Aug 14, 2019 · 0 comments · Fixed by #48
Labels
S: docs Relating to the OCDS documentation server

Comments

@odscjames
Copy link
Contributor

https://github.com/open-contracting/deploy/blob/master/salt/apache/ocds-docs-live.conf.include#L249

    {# This solves a problem - "Convert to Spreadsheet" was working on HTTPS but not HTTP. Fix this by forcing header to be something the CSFR check likes. #}
    {# When we change HTTPS to force, there will be no HTTP traffic and this block should be removed. #}
    {% if testing  %}
        <Location /review>
                Header add referer "https://testing.live.standard.open-contracting.org"
                RequestHeader set referer "https://testing.live.standard.open-contracting.org"
        </Location>
        <Location /infrastructure/review>
                Header add referer "https://testing.live.standard.open-contracting.org"
                RequestHeader set referer "https://testing.live.standard.open-contracting.org"
        </Location>
    {% endif %}
    {% if not testing %}
        <Location /review>
                Header add referer "https://standard.open-contracting.org"
                RequestHeader set referer "https://standard.open-contracting.org"
        </Location>
        <Location /infrastructure/review>
                Header add referer "https://standard.open-contracting.org"
                RequestHeader set referer "https://standard.open-contracting.org"
        </Location>
    {% endif %}
@jpmckinney jpmckinney added the S: cove Relating to the Data Review Tool servers label Oct 2, 2019
@jpmckinney jpmckinney added S: docs Relating to the OCDS documentation server and removed S: cove Relating to the Data Review Tool servers labels Oct 25, 2019
@jpmckinney jpmckinney mentioned this issue Sep 9, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: docs Relating to the OCDS documentation server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants