Replies: 1 comment
-
@simonaco looking for wisdom here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My team has built an SWA application with Angular. One of our team ran a security utility against the app, and it recommended that we disable OPTIONS on the site. Using the staticwebapp.config.json file, we struggled to find a way to do this. Eventually, we discovered a way to achieve this via "routes" in the config file, mapping the OPTIONS to only be executed by a non-existent group.
"routes": [
{
"route": "/*",
"methods": ["OPTIONS"],
"allowedRoles": ["nogroup"]
}
]
This feels like a hack, and I'm hoping someone can point us to a cleaner solution.
Beta Was this translation helpful? Give feedback.
All reactions