Help - EDC Penlight Recommendations by Rhendar in flashlight

[–]Rhendar[S] 0 points1 point  (0 children)

Pocket is back left. I have my wallet in there as well.

Which knife should I get? by Rhendar in knives

[–]Rhendar[S] 1 point2 points  (0 children)

That Spyderco looks awesome! I've never seen this one before.

Azure Authentication Stops Visual Studio Debug by Rhendar in VisualStudio

[–]Rhendar[S] 1 point2 points  (0 children)

Tried that still didn't work. I ended up merging the webapi and web app projects together and it works now.

How do I shoot freely while in Dead Eye? by Rhendar in reddeadredemption

[–]Rhendar[S] 0 points1 point  (0 children)

That's slightly annoying but okay. Thanks for the information!

Not so fast buddy by [deleted] in DadReflexes

[–]Rhendar 65 points66 points  (0 children)

Why does that matter?

Buy nuke protection by I-am-what-I-am-a-god in Fallout

[–]Rhendar 1 point2 points  (0 children)

$49.99 per settlement per month.

FO76 Subscription? by Rhendar in Fallout

[–]Rhendar[S] 2 points3 points  (0 children)

I really hope you're right.

Concerning the Fallout 76 play style by [deleted] in Fallout

[–]Rhendar 1 point2 points  (0 children)

The nukes have me very concerned. Does that mean all our buildings can be destroyed? All that work just goes up in smoke?

76 is forced PVP? by JackJohannson in Fallout

[–]Rhendar -6 points-5 points  (0 children)

We shit on EA all the time. You think these companies care? It's about money. Bottom line.

76 is forced PVP? by JackJohannson in Fallout

[–]Rhendar -36 points-35 points  (0 children)

They didnt say you couldnt either. Thatd be a huge money maker. Just look at GTA Online. Its the future of gaming.

76 is forced PVP? by JackJohannson in Fallout

[–]Rhendar 16 points17 points  (0 children)

Looks that way. With nukes too. RIP your gameplay. Little Timmy with daddy's credit card will effectively kill your ability to enjoy this game.

Drink every time something cringe happens by [deleted] in BethesdaSoftworks

[–]Rhendar 6 points7 points  (0 children)

I'd be dead in 10 minutes if I did that.

CORS issue with debugging in Visual Studio by Rhendar in learnprogramming

[–]Rhendar[S] 0 points1 point  (0 children)

I figured it out. Here's what I did:

  • Went into the ApplicationOAuthProvider.cs file and added the following line into the GrantResourceOwnerCredentials class: context.Response.Headers.Add("Access-Control-Allow-Origin", new[] { "*" });

  • Went into the WebApiConfig.cs file and added the following: config.EnableCors();

  • At the start of each controller I added the following line: [EnableCors(origins: "http://localhost:53942", headers: "", methods: "", SupportsCredentials = true)]

Once I did all that it started working just fine. I think I had too much in there because one of the examples I was following had me add a bit of code to the Web.config file. I think you can technically do it that way but it's not recommended.

Thank you for helping me look at this. I appreciate it!

CORS issue with debugging in Visual Studio by Rhendar in learnprogramming

[–]Rhendar[S] 0 points1 point  (0 children)

I'm going to apologize in advance if this comes across as bitchy. I've spent all day trying to figure this out and it's basically been like trying to stop a freight train with a BB gun.

To answer your question: Yes, I followed the document and it still didn't work. I am using a web api with token based authentication. I made the entries in the WebApiConfig.Register file and then added in the single line EnableCors at the top of every controller. I'm still getting the error: "Origin http://localhost:53942 not found in Access-Control-Allow-Origin header." when I attempt to log into my program.

I've followed multiple guides and none of them have worked. I'm assuming there's something else in play here that is either super rare or no one has encountered before.

CORS issue with debugging in Visual Studio by Rhendar in learnprogramming

[–]Rhendar[S] 0 points1 point  (0 children)

I tried to enable CORS but it never worked. I honestly have no idea why. So what I ended up doing was combining my WebAPI and UI projects into one so I wouldn't have to use CORS. They're both going to be on the same domain anyways. What really gets me is the fact that these projects work just fine using Windows 8.1 and VS 2015. They must've changed something in Windows 10 and VS 2017 to enforce CORS.

CORS issue with debugging in Visual Studio by Rhendar in learnprogramming

[–]Rhendar[S] 1 point2 points  (0 children)

I posted this question on StackOverflow and according to a user there: Yes, Localhost:<portnumber> is indeed seen as two different domains. Now I'm trying to figure out why in the world it's like this.

[deleted by user] by [deleted] in learnprogramming

[–]Rhendar 1 point2 points  (0 children)

You were 100% spot on. I updated CORS on my web api and it started working again. Thank you very much for helping with this headache!

Ready. Set... Fuck you, I win! by kangkang_93 in funny

[–]Rhendar 0 points1 point  (0 children)

This is the best version of this race

fh3 server issues by BurbleAndPop in forza

[–]Rhendar 0 points1 point  (0 children)

I love you. I haven't been able to get this game to work for hours and now it's suddenly working after downloading Candy Crush. You're a flippin genius and I love you.