The JS string in worker don't allow "perl -pe[space]"

For Workes & Pages, what is the name of the domain?

https://jolly-bar-2763.crazypeace.workers.dev/

What is the error message?

API Request Failed: PUT /api/v4/accounts/38713e45593bbaa4436de13cb7ccbd9a/workers/services/jolly-bar-2763/environments/production?include_subdomain_availability=true (403)

What is the issue or error you’re encountering

The JS string in worker don’t allow “perl -pe[space]”

What steps have you taken to resolve the issue?

Use string + ’ ’ way
for example:
export default {
async fetch(request, env, ctx) {
let perlstr = ‘perl -pe’
return new Response(perlstr + ’ ');
},
};

What are the steps to reproduce the issue?

Write 'perl -pe ’
For example:
export default {
async fetch(request, env, ctx) {
return new Response('perl -pe ');
},
};

Screenshot of the error

Looks like WAF blocking it. Use Wrangler instead of the dash editor: Wrangler · Cloudflare Workers docs

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.