<feed xmlns='http://www.w3.org/2005/Atom'>
<title>project/web/donate, branch master</title>
<subtitle>donate.tpo</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/'/>
<entry>
<title>Set allowed origin header for onion hosts</title>
<updated>2020-12-23T22:13:24+00:00</updated>
<author>
<name>Peter Haight</name>
<email>peterh@giantrabbit.com</email>
</author>
<published>2020-12-23T22:13:24+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=81529a62ee26f07c1fdd1e440bd95873ace6435e'/>
<id>81529a62ee26f07c1fdd1e440bd95873ace6435e</id>
<content type='text'>
In order to let us use fetch with credentials (to send cookies), the
allowed origin needs to match the URL for the site using fetch. So if
the request is coming from an onion URL, then assume it's from the onion
donate site.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to let us use fetch with credentials (to send cookies), the
allowed origin needs to match the URL for the site using fetch. So if
the request is coming from an onion URL, then assume it's from the onion
donate site.
</pre>
</div>
</content>
</entry>
<entry>
<title>Limit matched amount in counter to first 100k donated</title>
<updated>2020-12-11T22:20:51+00:00</updated>
<author>
<name>Richard Esguerra</name>
<email>resguerra@giantrabbit.com</email>
</author>
<published>2020-12-11T22:20:51+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=908a52069b793e16ffc06f895f465aab104ccfff'/>
<id>908a52069b793e16ffc06f895f465aab104ccfff</id>
<content type='text'>
Contributions beyond $100k in the campaign period are not matched, so
this limits the doubling logic to the appropriate amount and supplies
the correct amount in the JSON used by the donate page counter.

Issue #49798
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Contributions beyond $100k in the campaign period are not matched, so
this limits the doubling logic to the appropriate amount and supplies
the correct amount in the JSON used by the donate page counter.

Issue #49798
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Use wildcard for Access-Control-Allow-Origin"</title>
<updated>2020-10-21T18:46:12+00:00</updated>
<author>
<name>Peter Haight</name>
<email>peterh@giantrabbit.com</email>
</author>
<published>2020-10-21T18:46:12+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=3df82c4eeb72db90348e40514b280d96accdc833'/>
<id>3df82c4eeb72db90348e40514b280d96accdc833</id>
<content type='text'>
This reverts commit 9a7940ba9994789293b44c64632822cc849c918c.

This didn't work because then we get this error in the browser:

Access to fetch at
'https://donate-api.torproject.org/setExpressCheckout' from origin
'https://donate.torproject.org' has been blocked by CORS policy:
Response to preflight request doesn't pass access control check: The
value of the 'Access-Control-Allow-Origin' header in the response must
not be the wildcard '*' when the request's credentials mode is
'include'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 9a7940ba9994789293b44c64632822cc849c918c.

This didn't work because then we get this error in the browser:

Access to fetch at
'https://donate-api.torproject.org/setExpressCheckout' from origin
'https://donate.torproject.org' has been blocked by CORS policy:
Response to preflight request doesn't pass access control check: The
value of the 'Access-Control-Allow-Origin' header in the response must
not be the wildcard '*' when the request's credentials mode is
'include'.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use wildcard for Access-Control-Allow-Origin</title>
<updated>2020-10-21T17:26:04+00:00</updated>
<author>
<name>Peter Haight</name>
<email>peterh@giantrabbit.com</email>
</author>
<published>2020-10-21T17:26:04+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=9a7940ba9994789293b44c64632822cc849c918c'/>
<id>9a7940ba9994789293b44c64632822cc849c918c</id>
<content type='text'>
The newsletter site captcha isn't working because it needs this header
set to newsletter.torproject.org and this header doesn't allow multiple
origins. We'll just set it to wildcard for now and figure out if we can
do something else.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The newsletter site captcha isn't working because it needs this header
set to newsletter.torproject.org and this header doesn't allow multiple
origins. We'll just set it to wildcard for now and figure out if we can
do something else.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use subscriptionErrorUrl instead of referrer</title>
<updated>2020-10-21T17:22:35+00:00</updated>
<author>
<name>Peter Haight</name>
<email>peterh@giantrabbit.com</email>
</author>
<published>2020-10-21T17:22:35+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=5cbae9a0e12c7d6e5b60b94f8f8db7a93a3a044e'/>
<id>5cbae9a0e12c7d6e5b60b94f8f8db7a93a3a044e</id>
<content type='text'>
Tor has Referrer-Policy: no-referrer on their live server, so we can't
use the referrer for going back to the page that sent the request.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tor has Referrer-Policy: no-referrer on their live server, so we can't
use the referrer for going back to the page that sent the request.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed Uncaught Exception Error: "Class 'Tor\Uri' not found"</title>
<updated>2020-10-02T23:03:04+00:00</updated>
<author>
<name>Peter Haight</name>
<email>peterh@giantrabbit.com</email>
</author>
<published>2020-10-02T23:03:04+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=945f003f2247a52a97268beda482e12aaab90c96'/>
<id>945f003f2247a52a97268beda482e12aaab90c96</id>
<content type='text'>
Forgot to checkin a file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Forgot to checkin a file.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed notice with reset in subscription-request</title>
<updated>2020-10-02T21:46:22+00:00</updated>
<author>
<name>Peter Haight</name>
<email>peterh@giantrabbit.com</email>
</author>
<published>2020-10-02T21:46:22+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=77d09d0e2563b4da637a25cf7f6e6be38ead5442'/>
<id>77d09d0e2563b4da637a25cf7f6e6be38ead5442</id>
<content type='text'>
reset takes a reference, so we can't just pass the result of a function.

Issue #48283
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
reset takes a reference, so we can't just pass the result of a function.

Issue #48283
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow cryptocurrency thank you redirect to adopt localOptions</title>
<updated>2020-09-30T18:49:09+00:00</updated>
<author>
<name>skirtiadi</name>
<email>skirtiadi@giantrabbit.com</email>
</author>
<published>2020-09-30T18:49:09+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=3fd8b4c7f1956c520787f95d4a6d65e066dab3e2'/>
<id>3fd8b4c7f1956c520787f95d4a6d65e066dab3e2</id>
<content type='text'>
Part of porting the site to lektor site, cryptocurrency page
is going to be on the lektor site. To allow flexibility of
where people are going to be redirected after the submission,
this code is put into place. key pair 'cryptocurrencyThankyouUrl'
=&gt; '/cryptocurrency/thank-you' needs to be added in $localOptions
in private/settings.local.php on the donate server for local
settings.

Issue #48280
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Part of porting the site to lektor site, cryptocurrency page
is going to be on the lektor site. To allow flexibility of
where people are going to be redirected after the submission,
this code is put into place. key pair 'cryptocurrencyThankyouUrl'
=&gt; '/cryptocurrency/thank-you' needs to be added in $localOptions
in private/settings.local.php on the donate server for local
settings.

Issue #48280
</pre>
</div>
</content>
</entry>
<entry>
<title>Added Lektor error pages for Civi mailing links</title>
<updated>2020-09-28T23:33:52+00:00</updated>
<author>
<name>Peter Haight</name>
<email>peterh@giantrabbit.com</email>
</author>
<published>2020-09-28T23:33:52+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=b4056e56f8186dbefd57c1da41a19a48ddbb5326'/>
<id>b4056e56f8186dbefd57c1da41a19a48ddbb5326</id>
<content type='text'>
If a user clicks on a link like an optout or unsubscribe link in a
CiviCRM mailing and then there's some issue with the unsubscribe, we
need to show them some errors, so we need to send them back to the
lektor site because we aren't going to have any display pages on the
donate site once the Lektor pages go live.

Issue #48285
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a user clicks on a link like an optout or unsubscribe link in a
CiviCRM mailing and then there's some issue with the unsubscribe, we
need to show them some errors, so we need to send them back to the
lektor site because we aren't going to have any display pages on the
donate site once the Lektor pages go live.

Issue #48285
</pre>
</div>
</content>
</entry>
<entry>
<title>Changes to handle subscriptions from lektor</title>
<updated>2020-09-26T00:29:03+00:00</updated>
<author>
<name>Peter Haight</name>
<email>peterh@giantrabbit.com</email>
</author>
<published>2020-09-26T00:29:03+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.torproject.org/project/web/donate.git/commit/?id=1934fbdb02066f5729cf502d3f340a7efe3a1337'/>
<id>1934fbdb02066f5729cf502d3f340a7efe3a1337</id>
<content type='text'>
This lets Lektor handle the subscription forms and get back error
messages and get redirected back to the correct pages.

Issue #48283
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This lets Lektor handle the subscription forms and get back error
messages and get redirected back to the correct pages.

Issue #48283
</pre>
</div>
</content>
</entry>
</feed>
