-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not responsive (menu disappears) on CMS_PICO Nextcloud application #3
Comments
Are you sure about that? JavaScript is loaded at the client-side so there is nothing to do with the server. Even the default theme contains a JavaScript file: |
Yes i think i am sure because i am not only one with this problem, see the git reposotery and this issue please Thanks for your help |
There should be a way to override the CSP policy given by NextCloud, but I am not sure. Let's see how they answer to nextcloud/cms_pico#34. The solution now is to put JavaScript codes inside index.twig, instead of having them separately. Write something like this before Line 95 of
Note that the content of |
Thanks, i have test your solution without success sorry. nt Security Policy: The page’s settings blocked the loading of a resource at self (“script-src 'nonce-M2s5amZVYkZhVUs1WjRGbWorWWhLZ1g2MFBHaTVZbmozZWZXOXRSUDdRQT06bFNBU0t4YTlBQzdmS0xrUDk3UkVCVEdLa2NUaDA3dldzWUdTbDZVR3BYQT0=' https://domaine https://domaine 'unsafe-eval'”). Source: $('.featured-slider').u.... nt Security Policy: The page’s settings blocked the loading of a resource at self (“script-src 'nonce-M2s5amZVYkZhVUs1WjRGbWorWWhLZ1g2MFBHaTVZbmozZWZXOXRSUDdRQT06bFNBU0t4YTlBQzdmS0xrUDk3UkVCVEdLa2NUaDA3dldzWUdTbDZVR3BYQT0=' https://domaine https://domaine 'unsafe-eval'”). Source: $('.featured-slider').u.... Content Security Policy: The page’s settings blocked the loading of a resource at self (“script-src 'nonce-M2s5amZVYkZhVUs1WjRGbWorWWhLZ1g2MFBHaTVZbmozZWZXOXRSUDdRQT06bFNBU0t4YTlBQzdmS0xrUDk3UkVCVEdLa2NUaDA3dldzWUdTbDZVR3BYQT0=' https://domaine https://domaine 'unsafe-eval'”). Source: Maybe i must use this nextcloud application: https://github.com/nextcloud/jsloader ? |
Sorry that I am not able to help you in this case. This issue belongs to the NextCloud: https://github.com/nextcloud/server/issues?utf8=%E2%9C%93&q=CSP. Even the nextcloud/jsloader mentions about the CSP policy in the screenshot. You really should ask them for help. |
I think I have found something... Look this: nextcloud/server#2791 |
Yes i have change my apache config with this help: |
Glad to hear that! I do not think you still need to put all JavaScript into |
First on nextcloud cms_pico application, we can't load js file. It's a restriction for security...
https://github.com/nextcloud/cms_pico
When i open the travelify theme on my mobile device all the top menu disappears
When I use other responsive designs, the menu is converted to a button which has all the buttons/texts inside.
It's possible to implement the hamburger icon same as the skelepico theme ?
https://github.com/paulcarl/skelepico-theme
On nextcloud the hamburger work with skelepico theme but i don't know how, i am not a web developper.
Can you help me please ?
The text was updated successfully, but these errors were encountered: