TIL that #CORS also stands for "cat–owner relationship scale". Delightful.
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0324016
TIL that #CORS also stands for "cat–owner relationship scale". Delightful.
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0324016
Help Needed: #CORS and #Cloudflare Access Issues with #Nextflux + #MiniFlux Setup
Hi everyone! I’m struggling with a #SelfHosted setup and could really use some advice from the self-hosting community. Lol I've been trying to figure this out for hours with no luck. Here’s my situation:
Setup
What’s Working
The Problem
Nextflux cannot connect to MiniFlux due to persistent CORS errors and authentication issues with Cloudflare Access. Here are the errors I’m seeing in the browser console:
Access to fetch at 'https://rss.laniecarmelo.tech/v1/me' from origin 'https://nextflux.laniecarmelo.tech' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Cloudflare Access Redirection:
Request redirected to 'https://lifeofararebird.cloudflareaccess.com/cdn-cgi/access/login/rss.laniecarmelo.tech'.
Failed to Fetch:
Failed to fetch: TypeError: Failed to fetch.
What I’ve Tried
Service Token Authentication:
CF-Access-Client-Id
and CF-Access-Client-Secret
headers in Caddy for rss.laniecarmelo.tech
.CORS Configuration:
Access-Control-Allow-Origin: *
) in both Caddy and MiniFlux.Policy Adjustments:
Debugging Logs:
AccessJWTValidator
errors).Current State
Despite these efforts:
Goals
My Environment
CLOUDFLARE_SERVICE_AUTH_ENABLED=trueCLOUDFLARE_CLIENT_ID=<client-id>CLOUDFLARE_CLIENT_SECRET=<client-secret>
Relevant Logs
From cloudflared
:
ERR error="request filtered by middleware handler (AccessJWTValidator) due to: no access token in request"
From the browser console:
Access to fetch at 'https://rss.laniecarmelo.tech/v1/me' has been blocked by CORS policy.
Questions
Any help or advice would be greatly appreciated!
Ok I guess I'll have to give up again quite quickly
#Microsoft #Teams is broken for me as soon as I disable #IPv4. From what I could understand in this horrible mess of a "web app", the reason is probably some #CORS error. I have no idea how that could ever be related to #IPv6 or #NAT or anything. Tried temporarily disabling #NAT64 (to force direct v6 connections), tried adding all of Microsofts v6 networks to the "exclude" option of bind9 to have everything pass #NAT64 *avoiding* native IPv6, tried several ways to disable CORS, nothing helped.
Anyone know about these issues with teams?
edit: to clarify, "everything" seems to work except for the main purpose: join an actual call ...
CORS error blocking your Laravel API?
If your frontend and Laravel backend are on different domains, you’ve probably hit the dreaded CORS policy error.
Don’t let it break your app! Learn how to configure your Laravel application to allow cross-origin requests, and get your API running smoothly.
Fix it now: https://dev.to/robertobutti/resolve-blocked-by-cors-policy-no-access-control-allow-origin-in-laravel-kp1
Looks like I snuck in a #lifer between the whales and dolphins.
Cory's Shearwater, 15 miles off Gloucester MA this morning.
#CORS #Birds #CorysShearwater
With jub0bs/cors v0.2.0, you can now reconfigure your CORS middleware on the fly, even as the middleware is processing requests.
https://jub0bs.com/posts/2024-05-14-reconfigurable-cors-middleware/
Hi Gophers! If you're tired of being frustrated by CORS, I've got just the remedy.
https://jub0bs.com/posts/2024-04-27-jub0bs-cors-a-better-cors-middleware-library-for-go/
Useful trick shared by @dveditz: when debugging #CORS issues, you can get some helpful information in the console using
document.body.addEventListener(
"securitypolicyviolation",
(e) => { console.log(e) }
)
For more info, see https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent
If performance matters to you, which #CORS library for #golang would you rather use?
https://github.com/jub0bs/fcors-benchmarks
Release of v0.5.1 of jub0bs/fcors, the most opinionated #CORS middleware library for #golang:
- improved documentation
- minor performance gains
https://github.com/jub0bs/fcors
I have been working with #CORS for some time now. But today I finally found this great resource and it greatly reduced the amount of confusion I still had about cross-origin requests.
(Also a great resource to experiment.) #WebDev
https://jakearchibald.com/2021/cors/
Some of the #Fediverse software is not setting #CORS headers for their #Atom & #RSS #WebFeed
They should. But they aren't.
...
Adding #CORS headers makes it so Atom & RSS WebFeeds can be pulled at the client end (and doesn't have to run through a server).
If you care about #privacy , you should care about this. As not having it have to run through a server protects privacy more.
...
For example, the Atom & RSS WebFeeds should have this CORS header:
Access-Control-Allow-Origin: *
Does anyone know of a free (as in beer ) text snippet hosting service that sets the CORS headers to allow GET requests from any origin?
The reason to ask is that I'm working on a web game where levels can be created by other people as text and loaded from 3rd party websites. Now I want to write simple instructions for not very technical people to be able to extend the game. They will need a way to host their levels somewhere.
Samsung: Sicherheitslücke im Galaxy Store lässt Malware herein
#Hacking #CORS #CrossSiteScripting #Deeplinks #GalaxyStore #SamsungGalaxy #URLParameter #WebView https://tarnkappe.info/artikel/hacking/samsung-sicherheitsluecke-im-galaxy-store-laesst-malware-herein-258618.html
Some Cross Origin Resource Sharing (#CORS) guide #eli5 , it's pretty cool explained
https://ieftimov.com/post/deep-dive-cors-history-how-it-works-best-practices/