Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare Access breaks UV and/or bare server #74

Open
r58Playz opened this issue Sep 26, 2023 · 9 comments
Open

Cloudflare Access breaks UV and/or bare server #74

r58Playz opened this issue Sep 26, 2023 · 9 comments

Comments

@r58Playz
Copy link

r58Playz commented Sep 26, 2023

Issue tracker is ONLY used for reporting bugs. New features should be discussed on our Discord server.

Expected Behavior

UV works

Current Behavior

V3.ts fails to fetch the bare response.

Access to fetch at 'https://r58playz.cloudflareaccess.com/cdn-cgi/access/login/...' (redirected from 'https://.../bare/v3/?cache=008ec4453ff31513f43893cba7aa31c8') from origin '...' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Possible Solution

Maybe pass cookies to the fetch request?

Steps to Reproduce

  1. Host something that uses UV behind cloudflare access
  2. Load a page

Context (Environment)

I am trying to accomplish making a private aboutproxy instance

Detailed Description

Possible Implementation

@Notplayingallday383
Copy link

Velocity isn’t working just cus the bare is down or if you don’t understand that the server it sends the proxies network traffic through is down

@44011406
Copy link

when i upload the code to replit, it wont work, it says network error, even tho there isnt an error

@rifting
Copy link
Member

rifting commented Sep 29, 2023

Don't run on replit

@r58Playz
Copy link
Author

Also stop commenting on unrelated issues

@e9x e9x closed this as completed Nov 22, 2023
@e9x
Copy link
Member

e9x commented Nov 22, 2023

misclick

@e9x e9x reopened this Nov 22, 2023
@pipoblak
Copy link

Hey, news about it?

@IncognitoTGT
Copy link

First, make a new group that includes everyone.
make another application (self-hosted), and in this case, add the same domain, and then the /bare/ path.
Click next, and make a policy. Change the include dropdown to bypass, and set the everyone group in the bottom.

@r58Playz
Copy link
Author

I do not want to expose my bare server. That is the main reason I am using Cloudflare Access in the first place. Only authenticated users should have access to the proxy.

@itschasa
Copy link

itschasa commented Apr 3, 2024

I do not want to expose my bare server. That is the main reason I am using Cloudflare Access in the first place. Only authenticated users should have access to the proxy.

Then you'll need to change how bare requests are sent, so they include that authentication cookie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants