Skip to content
Discussion options

You must be logged in to vote

Perfect, thanks for pointing me to the correct place. I have looked at the helmet.js for Cross-Origin-Resource-Policy and it does seem to default to same-origin if not specified in helmet.

I haven't taken a look at how the config is implemented, but it may be as simple as adding something like this to the apps/server/src/app.ts

if (config["Network"]["corsResourcePolicy"]) {
    res.header("Cross-Origin-Resource-Policy", config["Network"]["corsResourcePolicy"]);
}

and then the user can choose an option from the allowed ResourcePolicy options, same-origin, same-site, or cross-origin

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@lzinga
Comment options

Comment options

You must be logged in to vote
2 replies
@dosubot
Comment options

@lzinga
Comment options

Answer selected by eliandoran
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant