Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
inaba46256y@irene Because I'm tired and annoyed and added a ) the wrong place when I wrote that shit because reading inlined code is shit and I thought something was up asdfgrashdthfgasdfasdf
-
inaba46256yWelp, that's embarrasing. So what happened was I requested for https but the server doesn't use https. Whooops :v
-
Here's a fun fact: in dotnet core, sometimes when a 500 internal server error happens, it'll tell you that's it a cors error. Not all the time, just some of the time. With no recognisible pattern.
I hate Microsoft 🙂 -
inaba46256y@KasperNS What I really don't like is all the default stuff they put in, although this is generally mostly true for ASP.NET Core MVC.
-
@inaba that's true, but I can live with that. I can't tell how many hours I've spent debugging cors, until I found out it had absolutely nothing to do with cors
-
inaba46256y@KasperNS The identity stuff that's build in is pretty nice. But god damn it's also plagued with the whole "don't worry about the defaults" shit where you and up wondering where stuff is actually stored and how it works and stuff
-
Not to be a philosopher here, but save yourself headaches and keep a template of Startup.cs aside, whenever I start a new dotnet core service I just throw my old startup file and I'm done.
Also have a template for registering policies and roles -
SHUT THE FUCK UP THE HTTPS THING IS WHATS BEEN WRONG WITH MY FUCKING APP I JUST REALIZED
-
dodomo1006y@inaba To be fair, the IdentityProviders that are prebuilt are what you call magic. You can always implement your own one (like I did) that does exactly what you want.
-
@devTea will do, I'll send you both files tonight need to remove personal stuff from their first lol
Related Rants
-
CCAtAlvis16Shit happens... but never let your shit go to far... specially while in production or drunk.
-
sam966931Difference between C# and Javascript Me: Hold my cup of tea. C#: That's not a cup of tea. Me: Hold my cup o...
-
COderGReat26When you go to paste a piece of code with CTRL+V and accidentally press CTRL+C instead so you have to go back ...
"Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://19-" SHUUUUUUUT UUUUUUUUUUUUP FOR FUCKS SAKE
I fucking have app.UseCors(x => x).AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader()); in my startup. It's not supposed to tell me the CORS request did not succeed becuase THERE'S NOT SUPPOSED TO BE CORS WHEN I DO THAT.
rant
cors
shit
annoying
c#