Fix some CORS issues in HTTP Nowhere mode#15606
Fix some CORS issues in HTTP Nowhere mode#15606Hainish merged 2 commits intoEFForg:masterfrom cschanaj:fix-cors-in-http-nowhere-mode
Conversation
* Rewrite access-control-allow-origin to avoid the HTTP protocol in HTTP Nowhere mode
|
thanks again @cschanaj for all of your work on https-e! |
|
|
||
| // If HTTP protocol is used, change it to HTTPS | ||
| if (value.match(/http:/)) { | ||
| details.responseHeaders[idx].value = value.replace(/http:/g, "https:"); |
There was a problem hiding this comment.
What if one of the URLs has http: in the middle?
|
According to https://www.w3.org/TR/cors/#access-control-allow-origin-response-header
and according to https://tools.ietf.org/html/rfc6454#section-7.1 There is only a single Origin in the
So, I guess this cannot happen in reality. @Hainish could you please help to confirm? |
|
Thanks @cschanaj. This sounds correct to me. Merging. |
|
@Hainish Thanks for merging this PR. We don't have any full release since April, is there is plan to make a release soon? |
|
True - I'll put it on the schedule for early next week. Thanks for noting it.
…On June 6, 2018 6:59:51 PM PDT, Chan Chak Shing ***@***.***> wrote:
@Hainish Thanks for merging this PR. We don't have any full release
since April, is there is plan to make a release soon?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#15606 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
HTTP Nowhere mode
This change make CORS issues like #14275 less likely to happen in HTTP Nowhere mode