From: Roel Janssen <roel@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Adding build status to the package list table
Date: Wed, 03 Feb 2016 11:32:14 +0100 [thread overview]
Message-ID: <87mvrigk4l.fsf@gnu.org> (raw)
In-Reply-To: <8737tai18b.fsf@elephly.net>
Ricardo Wurmus writes:
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Roel Janssen <roel@gnu.org> skribis:
>>
>>> We need to add the following line to the response header at
>>> hydra.gnu.org:
>>>
>>> Access-Control-Allow-Origin: "http://www.gnu.org"
>>>
>>> Here's how to do it:
>>> http://enable-cors.org/server_nginx.html
>>>
>>> Which boils down to adding this line to the nginx config:
>>> add_header 'Access-Control-Allow-Origin' 'http://www.gnu.org';
>>
>> OK, I’ve done that for /api requests (with the full URI, that is
>> <https://www.gnu.org/software/guix/packages/> and variants thereof).
>> Now, when clicking on “Expand”, IceCat no longer complains about CORS,
>> but it fails to expands and reports this:
>>
>> Blocked loading mixed active content
>> "http://hydra.gnu.org/api/latestbuilds?nr=1&project=gnu&jobset=master&job=adwaita-icon-theme-3.18.0.x86_64-linux"
>>
>> with a link to:
>>
>> https://developer.mozilla.org/en-US/docs/Security/MixedContent
>
> This is because the current page is encrypted but the content from hydra
> is not. Can we serve hydra.gnu.org/api over HTTPS?
I think that would fix this problem.
However, if I browse explicitly to:
http://gnu.org/software/guix/packages (the insecure version), I get the
following error message:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://hydra.gnu.org/api/latestbuilds?nr=1&project=gnu&jobset=master&job=acme-0.2.0.i686-linux. (Reason: CORS header 'Access-Control-Allow-Origin' does not match 'https://www.gnu.org/software/guix/packages, https://www.gnu.org/software/guix/packages/, https://www.gnu.org/software/guix/packages/index.html, https://gnu.org/software/guix/packages/, http://www.gnu.org/software/guix/packages, http://www.gnu.org/software/guix/packages/, http://www.gnu.org/software/guix/packages/index.html, http://gnu.org/software/guix/packages/').
This is because (at least in my browser), the origin is set to
"http://www.gnu.org" instead of the full path. So could you include
"http://www.gnu.org" in the list as well?
Thanks,
Roel
next prev parent reply other threads:[~2016-02-03 10:30 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 12:50 Adding build status to the package list table Roel Janssen
2015-11-19 19:57 ` Mark H Weaver
2015-11-19 21:25 ` Eric Bavier
2015-11-19 22:47 ` Roel Janssen
2015-11-20 16:31 ` Mark H Weaver
2015-11-21 15:21 ` Roel Janssen
2015-11-20 14:18 ` Ludovic Courtès
2015-11-20 16:43 ` Roel Janssen
2015-11-20 21:46 ` Pjotr Prins
2015-11-20 22:49 ` Ludovic Courtès
2015-11-21 15:24 ` Roel Janssen
2015-11-21 15:36 ` Pjotr Prins
2015-11-21 15:59 ` Ludovic Courtès
2015-11-24 13:24 ` Roel Janssen
2015-11-25 13:56 ` Ludovic Courtès
2015-11-27 0:16 ` Roel Janssen
2016-01-04 20:12 ` Roel Janssen
2016-01-06 16:03 ` Ludovic Courtès
2016-01-06 16:55 ` Roel Janssen
2016-01-06 22:20 ` Ludovic Courtès
2016-02-01 23:23 ` Roel Janssen
2016-02-03 9:28 ` Ludovic Courtès
2016-02-03 9:41 ` Ricardo Wurmus
2016-02-03 10:32 ` Roel Janssen [this message]
2016-01-21 10:11 ` Ludovic Courtès
2016-01-21 23:29 ` Roel Janssen
2016-01-22 8:54 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mvrigk4l.fsf@gnu.org \
--to=roel@gnu.org \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.