I have an application that has a VueJs based front end and NodeJs based backend API. The client-side is a SPA and it communicates with API for getting data. Now in a security scan, it is mentioned that the app doesn't have a Permission-Policy HTTP header and I would like to add it. I but not sure is there any option I can add in the VueJS and I am confused whether this is something that needs to be added from the front end. From the Node app, it is possible to set the header, but here the pages are not generated from the server-side. It will be helpful if someone can let me know how can I add these headers to the app.
Set Permission-Policy for Vue and NodeJS app
1.1k Views Asked by Happy Coder At
1
There are 1 best solutions below
Related Questions in VUE.JS
- Problems with matter.js and i18n in vue.js
- Form Validation not working in custom component Vue
- Authenticating vue app on each route change
- Vue/TailwindCSS - Content is behind Sidebar
- Vue3 Suspense Parent > Child Animation
- Pass dynamic object data via nuxt-link to component
- Failed to resolve import, but the path is valid, and detected as such by VSCode
- how to use less variables in vue components?
- Prevent a webpage from navigating away
- Creating a modal window in product edit page in Shopware6 and saving data to custom table(repository) from a form within the modal window
- How do I fix (or ignore) a TypeScript error that's inside a HTML template?
- Vue.js Checkbox Alignment Issue: Centering Checkboxes Within Table Cells
- How to reset vue product filter?
- Vue display output of two dimensional array
- vue js error when adding bonus items to another item
Related Questions in HTTP
- Handling both JSON and form values in POST request body with unknown values in Golang
- Why can't I use PUT requests?
- nginx set up reverse proxy from subfolder to a port
- Async Web Server RP2040 returning ERR_CONNECTION_REFUSED?
- Getting `FormatException: Missing extension byte (at offset 6)` exception for accessing `response.body` from a server deployed in Vercel
- Retrieving list of values from MYSQL data base based on input value(LARAVEL 10 )(GET HTTP METHOD)
- Unable to add request headers via CHttpFile - C++/MFC
- Why do we call all http services 'Web Api/Web Service'?
- How to correctly read POST REQUEST body on ESP32?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Elasticsearch - cascading http inputs from Airflow API
- How to clean the html pages opened in a session?
- UTF-8 is not a valid encoding name
- I dont get the Result i expected when i want to get my Telegram Chatbot id
- NextJS 14 SSE with TransformStream() sending messages in a single response
Related Questions in HTTP-HEADERS
- Difficulty Accessing HTTP URLs/IP Addresses Due to Browser Redirecting to HTTPS: Seeking Solutions
- Put Request throwing 401 [no body] Unauthorized
- Postman HeaderList remote function not working
- HTTP/2 POST requests with compressed responses failing ERR_HTTP2_PROTOCOL_ERROR 200 (OK)
- axios post request keeps on pending in browser (works fine in postman)
- How to rewrite the name of a backend header with nginx as a forward or reverse proxy?
- Netfilter Module to Log HTTP Headers
- Download a file from pre-signed url from s3 using Angular
- HTTP 431 error on Azure App Service with AAD access for some users
- How do I format a date for an HTTP header in gleam?
- HTTP headers with two CSP
- X-Forwarded-For in the request-ip package potential bug
- Custom Header from Network Request not being retrieved with fetch API
- How are white-listed domains actually enforced by some of the big API providers?
- SOAP Client Python zeep Does not pass the specified headers parameters
Related Questions in HTTP-PERMISSIONS-POLICY
- In Chrome console: Error with Permissions-Policy-Report-Only header: Feature fullscreen's parameters are ignored
- Permissions-Policy whic are added ASP.NET web.config files are not worked
- "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'" and site loading very slow
- How to craft a comprehensive Permissions Policy without triggering console warnings?
- What exactly "because of errors reported by structured header parser" means in `Permissions-Policy` error message
- Hide/Remove Permission-Policy header warnings in chrome
- Permission policy headers not shown in the firefox and chrome configurations
- Enable webUSB across cross-origin iframes without sharing permissions
- Declaring Feature-Policy (Permissions-Policy) headers in HTML meta tag
- Feature policies dropped when React app is loaded in iframe
- NotAllowedError in iframe while using contentWindow.location, featurePolicy doesn't work
- Using `navigator.credentials.get()` in cross-origin iframe gives error "'publickey-credentials-get' feature is not enabled in this document"
- Set Permission-Policy for Vue and NodeJS app
- Set feature-policy to iframe after insertion
- How do I enable Feature/Permissions Policy in an iframe in Google Add-ons?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Technically you can publish Permissions-Policy header when you sent an initial SPA's HTML code (you have to use some packages or Node.js server facility to publish response header). Even more so scanners do not execute ajax and will not see the pages of your SPA.
But there are some doubts whether it is worth doing it at all.
Permissions Policyis a new name ofFeature Policy, below I will use Feature Policy term, but all of the below also applies to Permissions Policy.Browsers poorly support Feature Policy and do not support Permissions Policy. Only Chrome supports the
interest-cohortdirective, but you have to set specific flags to enable Permissions Policy support. Feature Policy / Permissions Policy spec still is under development.Feature Policy is rarely published via HTTP header, because it is intended to restrict the capabilities of nested browsing contexts (iframes), and not the main page itself. Therefore it's mostly published via
<iframe allow="..."attribute for each third-party iframe embedded.But the scanners are not aware of this and do not check the
allow=attribute.Scanners don't know much about real security, they are more focused on visualization baubles like Grade A+ and labels with green/red color. Therefore scanners:
frame-ancestorsderictive and ignore fact that some sites are inbtended to be embedded (widgets, youtube/vimeo video etc.).Mostly scanners results have nothing with real security, all is how to get A+ grade, nothing else (see a relevant thread "headers manipulatin to get Grade A+").
Of course, scanners can draw your attention to some overlooked headlines, but final decision which headers do web-app need to publish is up to you.