I am using Keystonejs 6 and some models contain image type fields. When fetching this data I get a src of that image which points to /public/images/myimage.png. This link successfully gets loaded with admin panel logged in (session created) but when I request this src address from a browser anonymously, it redirects my request to the signin page. I can't find setup guide about static serving in Keystone 6. Although in Keystone 5 it seems exist in the documentation, in Keystone 6 nothing I can find in documents or community forum. Does Keystone 6 supports anonymous static file serving (serving public directory) and if it is possible how can I do this?
Static file serving in Keystonejs 6
425 Views Asked by ConductedClever At
1
There are 1 best solutions below
Related Questions in KEYSTONEJS
- How to use i18next with KeystoneJS
- Redirect keystone app to sub directory using htaccess
- MongoDB Content Management Web App for the non-technical
- How to create pages in keystone.js from admin section
- Path is missing in KeystoneJS
- Keystone, feature galleries on home page
- KeystoneJS error cannot install on openshift
- KeystoneJS get ObjectID from another value
- Show all posts created from specific year
- Keystonejs session
- keystone js: localhost is not in the certs altnames
- Keystone+React: 'import' and 'export' may appear only with 'sourceType: module'
- Yo keystone not working for Ubuntu server 16.04
- How to use .env file variable in .js file other than Keystone.js?
- Got console error `unexpected token <` from sign in page (using keystonejs 4.0 beta4)
Related Questions in STATIC-FILES
- django production deployment does not load static files
- Django template in static directory?
- Fail to push static site to Bluemix using third-party buildpack
- Node.js app 404 errors for public directory in Google App Engine Flexible production environment
- Trouble serving static files with my goapp through nginx
- ASP MVC allow static html files
- How to handle 'missing' or 'wrong file names' urls when using OWIN Static Files?
- Spark static file not displaying
- Static files not found in Mezzanine
- 'collectstatic' command fails when WhiteNoise is enabled
- Gunicorn on lighttpd - changing base URL for static files from localhost:8080
- Is it possible to route only specific static files in MVC?
- How to intercept 404 using Owin middleware
- MVC static files not going through custom handler
- Serving Static Files with Common Lisp
Related Questions in ANONYMOUS-ACCESS
- Facing issue while anonymous access to file share in windows using SMB 3 dialect
- Enabled flags to prevent anonymous access to pipes and shares not working
- Can't get anonymous access to website
- onEdit script does not start for users under anonymous access
- Kibana, anonymous access, dashboards only
- Changing site to Anonymous Access causing minor jQuery problems
- Anonymous access to parts of the svn repository
- ViewFormPagesLockDown and excluding specific lists/pages
- CascadingDropDownList not working with anonymous access
- Static file serving in Keystonejs 6
- Sharepoint 2007 - NewForm require login
- I can't see anonymous access menu in SharePoint 2010
- Preventing anonymous user from submiting form many times in ASP.NET without SqlMembershipProvider
- What are the app pool identity and account for anonymous access for?
- Can Flex App rest service calls bypass Windows authentication?
Related Questions in KEYSTONEJS6
- How can I override Webpack config in a dependency package?
- In Keystone 6, can we disable the user authentication/user login?
- How to fetch and pass the dynamic data into the custom field (Keystone.js 6)?
- Add data automatically to a table B when you add data to table A
- In Keystone JS v6, is there a way to store users without password being a required option?
- An error occurred handling a request for the Admin UI: Error: Prisma error: The table `main.User` does not exist in the current database
- Keystone 6 js: checkbox null values
- keystonejs form a multi-column unique constraint
- Static file serving in Keystonejs 6
- Unable to configure Keystone 6 with MongoDB
- Add logged in user ID to foreign key field automatically in KeystoneJS
- How to display data in table using Keystone6 component in custom page so it looks same?
- How to upload Image using graphQL update mutation in Keystone6?
- Error trying to reorder items within another list in Keystone 6
- Not able to understand the goal of public repo of KEYSTONEJS official repository and can't create docker image
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?
you can create a folder named
public, then underextendExpressAppadd the following codeapp.use("/public", express.static("public"));(follow express documentationhttps://expressjs.com/en/starter/static-files.html)add this line under
uipublicPages: ["public"],to skip admin authenticationnow your public folder should be accessible.