Skip to content
Advertisement

Tag: security

Is this a secure way of connecting to an SQL server?

Suppose I have a .php script on my server which interacts with a MySQL server. Part of it is: This script is solely server-side, and something like DevTools or view-source://web.address will not show the source code. However, it is really important that nobody is able to see this source code because it bears my username and password for one of

how does this protect against csrf attacks?

I’m working on making my opencart project and used This Article to write custom apis. It uses this block of code to do a security check against csrf attacks: My question is how is that going to protect against csrf attacks according to the article? It seems it just sets Access-Control-Allow-Origin header to whatever domain the request is coming from

Advertisement