Update worker.js

This commit is contained in:
James Hawkins 2021-09-27 21:05:10 +01:00 committed by GitHub
parent 295c7b3cfb
commit eaef9f984b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,7 @@ async function handleRequest(request, destinationUrl, iteration = 0) {
// Set CORS headers
response.headers.set("Access-Control-Allow-Origin", '*');
response.headers.set('Access-Control-Expose-Headers', 'PHPSESSID');
// Get and set PHPSESSID cookie
const cookies = response.headers.get('Set-Cookie');