@Madchatthew Iād always post for the reasons I stated above. Itās useful information and could save someone else the headache.
Flarum - WordPress Journey
-
@phenomlab 30tb? Shipment is from China
-
Bdw when I use security headers, I noticed the bbcodes icons in editor for answering questions disappear
https://i.postimg.cc/SR41mCZc/Screenshot-20221209-104409.png
-
@Sala What I meant was the price for a 30Tb drive seems unrealistically cheap - especially for an SSD drive.
-
@Sala said in Flarum - WordPress Journey:
Bdw when I use security headers, I noticed the bbcodes icons in editor for answering questions disappear
Can you elaborate a bit on this? Not sure what you mean.
-
@phenomlab same here 30tb I also thought I had lapses in technology, maybe new things came without my notice
The bbcodes icons
https://i.postimg.cc/R0YNnrGK/Screenshot-20221209-162710.pngSo they show when creating a new topic, but not showing on answering on already created topic.
It doesnāt hurt but itās caused by adding that security headers module. Anyway to rectify the cause?
-
@Sala Can you show me the output from the console when responding to a message? My personal thoughts are that this could be
CORS
related, but I need to verify that first. -
@phenomlab I knew you would love this, security part. š„³ Iāve forwarded to you a test user.
-
@Sala It the BBCodes show on a new topic as below
On response to a question, the same DIV is there but not populated
This is almost certainly a CORS issue, but Iāll need to see the headers youāve applied to comment further, or make suggestions.
-
@phenomlab this one is going to be hard, I put it on pause
-
@Sala not sure what you mean? I need the headers you specified in your
.htaccess
file (Iām assuming Apache here). -
@phenomlab I have forwarded to you the headers found in htaccess
-
@Sala thanks. Iāve checked the headers and again and I canāt see anything in the specific code I provided that would cause the bbcode to not display.
Does it work if you remove all the headers? If this is the case, my recommendation would be to enable them one by one and find out which one actually causes the issue. Once we know which one it is, we can then modify it to allow the display of bbcode.
It just seems odd to me that everything works fine on a new post, but not on reply. This would tell me they itās not the headers, but I could be wrong. You may want to try disabling wp-rocket to see if that resolves the issue rather than removing the headers.
-
@phenomlab yesterday I fix 2 bugs on just at the time you needed an answer for the headers, I immediately knew this one needed a test of one by one bcoz it could be the Defer for Js .
-
@Sala yes, deferring
JS
can have a negative effect on functionality. For speed reasons, you typically placeJS
in the footer rather than the header, but this then means itās not executed in time and in theDOM
when needed.Another potentially damaging feature is minifying
JS
to reduce itās size. Whilst wp-rocket offers several mechanisms to make the site load faster, youād need to test each one of these settings to ensure it doesnāt negatively impact the site. -
@phenomlab Hurray!
We have found the line that blocked the icons, it was this one:-Header set Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()"
Now itās your part to come up with another config line
-
Itās solved
Demoted the above line and re- modified theHeader set Feature-Policy "geolocation 'self' https://sopriza.com/"
To
Permissions-Policy: geolocation=(self "https://sopriza.com")
A+
-
@Sala yes, that will resolve the status rating, but that header doesnāt have any impact against
JS
loading.Very odd.
-
@phenomlab Iāll be happy if you can help me with the Js link which was causing that, i will be able to exclude it and stop any future problems
-
@Sala Sorry - which JS link ?
-
@phenomlab the one which enables the bbcode icons to populate
Related Topics
-
configure ghost and wordpress combo
Moved Solved WordPress -
-
-
-
-
-
-
WordPress & NodeBB
Solved WordPress