꧁~DialUpCea~꧂ · @alcea
46 followers · 3718 posts · Server pb.todon.de
Vincent Tunru · @VincentTunru
698 followers · 635 posts · Server fosstodon.org

Useful trick shared by @dveditz: when debugging Content Security Policy issues, you can get some helpful information in the console using

document.body.addEventListener(
"securitypolicyviolation",
(e) => { console.log(e) }
)

For more info, see developer.mozilla.org/en-US/do

#cors #csp

Last updated 1 year ago

Boris Schapira · @boostmarks
393 followers · 183 posts · Server hachyderm.io

My brain every time someone mentions

#cors

Last updated 1 year ago

Sven Geggus · @giggls
289 followers · 1927 posts · Server karlsruhe-social.de

Hat sich an irgendwas geändert? Das Suchfeld in meiner Karte tut nicht mehr wegen

#nominatim #cors

Last updated 1 year ago

Tarnkappe.info · @tarnkappeinfo
2350 followers · 4749 posts · Server social.tchncs.de
alexcoder04 :verified: · @alexcoder04
11 followers · 133 posts · Server techhub.social

Configuring is such a pain in the ass (at least on )

#cors #nginx

Last updated 1 year ago

Ihor Kalnytskyi · @ihor
37 followers · 81 posts · Server fosstodon.org

When it comes to Cross-Origin Resource Sharing (), I find that a lot of engineers out there are so confused about reasons and ideas. Everyone knows the abbr by heart yet when it comes to the security aspect they simply put `Access-Control-Allow-Origin: *` and call it a day.

Just found the other day a cool article explaining what CORS is, why it exists, and what headers and when to return. Screenshots and detailed guide included!

ieftimov.com/posts/deep-dive-c

#cors

Last updated 1 year ago

꧁~Hoping-for-winter-Cea~꧂ · @alcea
39 followers · 2571 posts · Server pb.todon.de

As much as I

I think wins for most usecases as you don't need a \ ..

But I like to or perhaps make their as ..

Guess thats how things are.

Noway am I gonna rely on ...

be damned !

#love #php #clientside #javascript #special #website #linking #phps #output #download #blob #serverside #languages #cors #codealcea #webserver

Last updated 1 year ago

roughiain · @roughiain
159 followers · 1567 posts · Server hachyderm.io
Dr. Angus Andrea Grieve-Smith · @grvsmth
464 followers · 1928 posts · Server lingo.lol

I successfully implemented an allow list for headers in !

$allowedOrigins = ["friendly.site"];

header("Access-Control-Allow-Headers: Origin,Accept, X-Requested-With, Content-\
Type, Access-Control-Request-Method, Access-Control-Request-Headers");

$headers = apache_request_headers();
if (!array_key_exists("Origin", $headers)) {
return;
}

if (in_array($headers["Origin"], $allowedOrigins)) {
header("Access-Control-Allow-Origin: " . $headers["Origin"]);
}

#cors #php

Last updated 1 year ago

ronix · @ronix
137 followers · 190 posts · Server sueden.social

I have been using server lately, and I really like it. Have created a small blog entry regarding in Caddy, because it seems that there is quite some confusion about it: auxnet.de/en/blog/caddy-server

#caddy #cors

Last updated 1 year ago

꧁~Marumoko-ExtraFluff-Cea~꧂ · @alcea
29 followers · 2006 posts · Server pb.todon.de

(notreally)

This works from byethost .. but from webapp000 ( result = 0b)

Why ?
? ? :blobcatgooglyholdingitsheadinitshands:

<̲?̲p̲h̲p̲
̲f̲i̲l̲e̲_̲p̲u̲t̲_̲c̲o̲n̲t̲e̲n̲t̲s̲(̲"̲y̲o̲u̲r̲p̲a̲g̲e̲z̲.̲h̲t̲m̲l̲"̲,̲ ̲f̲i̲l̲e̲_̲g̲e̲t̲_̲c̲o̲n̲t̲e̲n̲t̲s̲(̲"̲h̲t̲t̲p̲:̲/̲/̲a̲l̲c̲e̲a̲w̲i̲s̲t̲e̲r̲i̲a̲.̲b̲y̲e̲t̲h̲o̲s̲t̲7̲.̲c̲o̲m̲/̲P̲H̲P̲/̲0̲d̲e̲m̲o̲/̲2̲0̲2̲3̲-̲0̲3̲-̲2̲5̲-̲B̲o̲x̲N̲e̲t̲/̲y̲o̲u̲r̲p̲a̲g̲e̲.̲h̲t̲m̲l̲"̲)̲)̲;̲
̲?̲>̲

#brokencodealcea #php #flawlessly #not #http #cors #imsoconfused

Last updated 1 year ago

robrich · @robrich
14 followers · 117 posts · Server hachyderm.io

dev.to/jfbrennan/cors-checklis - (cross-origin web requests) is hard. Thanks for the quick checklist of both client and server items github.com/jfbrennan.

#cors

Last updated 1 year ago

Guilherme Dellagustin · @dellagustin
104 followers · 745 posts · Server fosstodon.org

Here is a discussion for requiring hosts to enable and HTTP conditional requests headers
Based on an analysis of top 40 hosts by number of feeds, there are still a lot of gaps there❗🤯

github.com/Podcast-Standards-P :github:

#podcaststandardsproject #psp #cors

Last updated 1 year ago

꧁~Marumoko-ExtraFluff-Cea~꧂ · @alcea
29 followers · 1920 posts · Server pb.todon.de
Kai · @kaipmdh
126 followers · 92 posts · Server hachyderm.io

I'm after a good, no-nonsense (but very much common sense) guide to , a concept which I clearly have failed to understand. Any suggestions?

#cors

Last updated 1 year ago

Albert Alcaine i Peralta · @aalcaine
183 followers · 1022 posts · Server occitania.social

@fionagehring as un de dança? Quin tipe de dança ei? Minjar damb tòn ei fantastic! A viatges era gent sonque se ve damb era sua parelha per sopar, dempús d'un dia complèt dehora de casa!

#cors #gojat

Last updated 1 year ago

Michael / Chgowiz 🎲🎲 · @chgowiz
199 followers · 1524 posts · Server dice.camp

So... then I got the bright idea of having my version of the Swords & Wizardry treasure generator call my hosted version of hex-describe to get what the treasure is contained in and guarded/hidden by.

Umm... yea.

* CORS.
* async javascript fetches.
* setting values to Dom objects then parsing them.

OK, it's kinda cool that this works but... sheesh.

#ttrpg #hexdescribe #javascript #cors #ihatesit

Last updated 1 year ago

Marcel Waldvogel · @marcel
695 followers · 763 posts · Server waldvogel.family

I have been working with 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.)
jakearchibald.com/2021/cors/

#cors #webdev

Last updated 1 year ago

SceneOneRichmond · @Sceneonerichmond
3 followers · 6 posts · Server fosstodon.org

I ran into all the errors today ... It's kind of frustrating trying to use 's in the .

#cors #javascript #module #browser

Last updated 1 year ago