Skip to content

How to set headers for response in a page #25425

Answered by dbzx10299
dbzx10299 asked this question in Questions
Discussion options

You must be logged in to vote

You can now with route rules

export default defineNuxtConfig({
  routeRules: {
    '/**': {
      headers: {
        'Accept-CH': 'Width, Viewport-Width'
      }
    }
  }
})

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dbzx10299
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants