You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know how to add headers to the style sheet, javascript and image files once build in quasar V2. I currently have the pre-build page that gets created when running "npm init quasar". I have created a additional ssr middle ware file that loads helmet html headers. When running in ssr mode the only headers that gets applied are the "Document" for the "Script", "Sheet" and "Image" it does not get set.
What am I doing wrong?
`
import helmet from "helmet";
import { ssrMiddleware } from "quasar/wrappers";
export default ssrMiddleware(
async ({ app /*, resolveUrlPath, publicPath, render */ }) => {
// something to do with the server "app"
app.use(helmet());
}
);
`
Document headers
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to know how to add headers to the style sheet, javascript and image files once build in quasar V2. I currently have the pre-build page that gets created when running "npm init quasar". I have created a additional ssr middle ware file that loads helmet html headers. When running in ssr mode the only headers that gets applied are the "Document" for the "Script", "Sheet" and "Image" it does not get set.
What am I doing wrong?
`
import helmet from "helmet";
import { ssrMiddleware } from "quasar/wrappers";
export default ssrMiddleware(
async ({ app /*, resolveUrlPath, publicPath, render */ }) => {
// something to do with the server "app"
app.use(helmet());
}
);
`
Document headers
Script headers
Beta Was this translation helpful? Give feedback.
All reactions