How do I remove email authentication to my Workers/Pages-deployed site?

I deployed my simple web application on https://7922e85c.cloudflare-assessment-6fh.pages.dev/. However, when I want to access this site, it asks for email authentication and only my primary registration email allows me to access the deployed site. How do I fix this?
10 Replies
Chaika
Chaika7mo ago
You enabled Cloudflare Access Pages Integration. If you go to your Pages Project -> Settings -> General, you can click Manage Policies under Access Policy, or go to the Zero Trust Dashboard -> Access -> Applications. Once you get there, you can modify the Application created for your pages.dev if you click the three dots on the right side of the application. You can edit the Policies to include more email addresses, or just delete the application all together (which would remove it from asking for emails/login to access)
Chaika
Chaika7mo ago
It only covers previews by default, ex: https://cloudflare-assessment-6fh.pages.dev/. still is publicily visible. You could use a Bulk Redirect Rule if you wanted to stop direct visits to that
React App
Web site created using create-react-app
John
John7mo ago
I'm here rn. Is there a way to allow anyone to visit the site?
No description
John
John7mo ago
wait so you're able to view the site (it's an orgchart) yourself?
Chaika
Chaika7mo ago
Yes
No description
Chaika
Chaika7mo ago
The Access Policy is just covering previews, not the latest production deployment
Chaika
Chaika7mo ago
Just delete the application all together
No description
John
John7mo ago
I’m confused. What would deleting the app do tho? Wouldn’t that just kill the site/make it completely inaccessible?
Chaika
Chaika7mo ago
Deleting the Access Application would just no longer require auth on it/Access would stop injecting itself in the request flow for that site You're not deleting the Pages Project, you're just deleting the Access application There isn't one by default for Pages Project, you clicked"Enable Access Policy" from the Pages Settings tab and it created one for you, which is what is requiring you to enter email/login to get access
John
John7mo ago
Sounds good, thank you! Giving it a try