Comments (5)
I don't actually have a good resource... But the issue is easy enough to test: in a test environment (on a different domain than geekdocs.de) change the loadScript
for the search data to use the demo sites data: https://geekdocs.de/js/en.search-data.min.117b1c7d3df6007e36fb3e6e137875a00134205b7aceeae7ac39abdfa5a77399.js
The CORS rules actually applies in that you cannot read the javascript code, but the script is run and the data is stored in window.geekdocSearchIndex
which is available to a nefarious site.
This type of attack was once successful in downloading users contacts from gmail once upon a time (~2006 or so) but I couldn't find a good writup on it...
from hugo-geekdoc.
I might be able to make a pull request with changes, but I'm not fluent with either hugo templates or javascript. But if nothing else it might serve as an idea.
from hugo-geekdoc.
Thanks for your report. Do you have a link for some background? I can't see how/why JavaScript files are excluded from CORS rules.
from hugo-geekdoc.
Related upstream issue nextapps-de/flexsearch#205
from hugo-geekdoc.
Thanks for adding the details. I need to take a look how to handle this with a JSON file...
from hugo-geekdoc.
Related Issues (20)
- 官网页面Edit按钮的超链接失效 HOT 1
- XML not highlighted in the expand shortcode. HOT 2
- (Suggestion)Limit navigation scrolling
- Thank you! Site is now fully online HOT 1
- Localization admonitions HOT 1
- Title of links aren't properly localized HOT 3
- Feature Request: Open External Links in New Tab
- FlexSearch does not work on Safari HOT 6
- Feature Request: Built-In Versioning/Selector Feature HOT 4
- Provide a way to show "Next" and "Previous" links on a page HOT 9
- Codeblock copy adds empty lines HOT 13
- Table of Contents shortcode needs better documentation on difference between html and raw HOT 4
- TOC-Tree sorts alphabettically instead of how the site sorts it HOT 8
- Collapse Arrow-Down icon is hidden with Menu Bundle HOT 2
- Category needs to have a ref in bundle menu in order for it to be collapseable HOT 1
- Unable to use expand or tabs with mermaid HOT 5
- Google analytics support HOT 1
- Do not use`.Site.BaseURL` HOT 2
- 404 render error HOT 7
- Goldmark renderer must be marked with "unsafe = true" to allow nested shortcodes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-geekdoc.