I have been running a static React SPA site for a couple years on GCP using the setup below. Recently I started receiving an unauthenticated message coming from the bucket. Interestingly it seems to only be during a handshake where `access_token` is the query string and started about 25% of the time, now its more like 75% of the time it fails.
I am wondering what changed or what the setup needs to be?
Setup:
The error message:
<Error>
<Code>AuthenticationRequired</Code>
<Message>Authentication required.</Message>
</Error>
{ severity: "WARNING", httpRequest: { cacheLookup: true latency: "0.016666s" referer: "https://----------/" remoteIp: "-------" requestMethod: "GET" requestSize: "648" requestUrl: "https://-------/?access_token=----------" responseSize: "253" status: 401 userAgent: "--- Chrome/136.0.0.0" }, jsonPayload: { @type: "type.googleapis.com/google.cloud.loadbalancing.type.LoadBalancerLogEntry" backendTargetProjectNumber: "-----" cacheDecision: [ 0: "REQUEST_CACHE_CONTROL_NO_CACHE" 1: "RESPONSE_HAS_CACHE_CONTROL" 2: "RESPONSE_CACHE_CONTROL_DISALLOWED_CACHING" 3: "RESPONSE_HAS_EXPIRES" 4: "RESPONSE_HAS_CONTENT_TYPE" 5: "CACHE_MODE_CACHE_ALL_STATIC" ] cacheId: "----" remoteIp: "----" statusDetails: "response_sent_by_backend" } }
Any thoughts or ideas?
Solved! Go to Solution.
well over the last 48 hours it has started happening on 4 different static sites, i redeployed them to cloudflare....
well over the last 48 hours it has started happening on 4 different static sites, i redeployed them to cloudflare....