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
		- 
				
				@SortOfTested nah that Cors thing is just a one liner and I could have needed it by last month
But yeah, could be done better - 
				
				@example-user
Turning it off would leave it open to random attacks from script kiddies. Better safe than bloating dfox's bill to the point he shuts the service down. 🤣 - 
				
				@SortOfTested It is also a security risk to keep it cross-origin, Any website will be able to make authorised request on behalf of Currently logged in user.
 - 
				
				@SortOfTested I know that, I am supporting your argument by adding reasons why it shouldn't be done
 - 
				
				@theabbie
Just making sure, it sounded like you thought I was advocating it 😋 - 
				
				Yeah, * only works if you deliberately avoid cookies and either also avoid standard HTTP auth or trust everyone using the api on client side not to utilize browser-provided auth tools.
 - 
				
				I'm personally all for JWTs and ditching Cookies as they're effectively a way to give HTTP opaque state, but Devrant doesn't work that way.
 - 
				
				@Lor-inc we'll need to see what comes of it when they finally move every API to Pipeless (see latest news from dfox).
 - 
				
				I wasn't aiming at DR for those wondering.
I so often when I look on "how to allow CORS requests" I see people saying: "just set it to '*'" and I instantly start getting the tendency to become a serial killer.
Serialized killer? w8wat - 
				
				@FinlayDaG33k Is there any problem with the header if you bypass the browser's efforts to break your security by authorizing all requests?
 
Related Rants
- 
						
							
Stress9> Claims to be a security expert and an Anonymous member > His router uses WEP as encryption - 
						
							
boombodies11Corporate IT: Here at Company A we are very proactive about CyberSecurity! Dev: What is our cybersecurity pla... - 
						
							
darkm0de16Dear CORS, Fuck you. Sincerely, localhost:8080 connecting to localhost:8000 

please stop fucking "Access-Control-Allow-Origin: *"
rant
security fail
cors