Authorization header visible in static generation
See original GitHub issueHello,
I’m extremely grateful for your module, thanks a lot.
I’m using it with a headless CMS (directus) and nuxt generate
for a full static website.
As I’m using nuxt generate
, I thought a static header Bearer static_token
with read only access would be enough.
While inspecting the generated code, I noticed that the graphql endpoint and all the conf is visible, including the authorization header.
I’m wondering if it’s an expected behaviour or if I’m supposed to try and hide those informations, or if they should not be rendered at all as no communication is made between the website and the CMS (except during generate
)…
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
adding authorization header of static values with every request
I am using Angular 7 for a web applications and there are more than 50 APIs. Now I need to add Authorization Bearer...
Read more >next.config.js: Custom Headers
Headers allow you to set custom HTTP headers on the response to an incoming request on a given path. To set custom HTTP...
Read more >Define a Legacy Named Credential - Salesforce Help
By default, Salesforce generates an authorization header and applies it to each callout that references the named credential. Deselect this option only if...
Read more >Authorize access to blob or queue data from a native or web ...
If authentication succeeds, Azure AD returns the access token to the ... Screenshot showing how to register your storage application with ...
Read more >Authorization Services Guide - Keycloak
A new Authorization tab is displayed for the client. Client Settings ... The value of the 'User-Agent' HTTP header. String[]. kc.realm.name.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @nonlinearcom, I’ve been using this method on a couple of websites without any drawbacks so far:
Directus files
collection (no app access)The token is visible in the source code but it’s just a read token so… I guess it’s ok 😃
It should still work on dev.