Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger doc integration initial commits #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DulanjaliSKoswatte
Copy link

@DulanjaliSKoswatte DulanjaliSKoswatte commented May 9, 2020

Fixes CWE 16 and CWE 264 in stackle-api

Changes proposed in the pull request

Stackle-master\stackle_api\server.js

const helmet = require('helmet')
app.use(helmet.frameguard())

app.use(function (err, req, res, next) {
res.header("Access-Control-Allow-Origin", "http://localhost:8080");
res.header('Access-Control-Allow-Methods', 'GET, PUT, POST, DELETE, OPTIONS');
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
console.error(err.stack);
res.status(500).send('Something broke!')
});

Impact

HTTP Header level validation

Other information

Check if you have done the following before creating the PR

  • console logs have been deleted
  • No commented code (If commented the reasons are given)

Stackle-master.zip
Cross-Domain Misconfiguration.docx
X-Frame-Options Header Not Set.docx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants