We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e57a4 commit 589f6d0Copy full SHA for 589f6d0
src/index.js
@@ -87,8 +87,8 @@ async function handleCorsRoute(req, env) {
87
});
88
// if not ok, or response is neither HTML or JSON, return 404
89
if (!beresp.ok
90
- || !beresp.headers.get('content-type').includes('html')
91
- || !beresp.headers.get('content-type').includes('json')) {
+ || !(beresp.headers.get('content-type').includes('html')
+ || beresp.headers.get('content-type').includes('json'))) {
92
return new Response('', {
93
status: 404,
94
headers: {
0 commit comments