miniBB ®miniBB®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · Manual ·
The Other miniBB Support Forums / The Other /  
 

Primary miniBB scripts for CSP

 
 
Page  Page 2 of 2 :  « Previous  1  2

Author tom322
Active Member
#16 · Posted: 20 Oct 2026 00:44
Frédéric:
I don't see how to do it.
That's an interesting question. I've been wondering if it would be possible as it would be totally unique for a forum to be able to do it ;) I think an IP and maybe $user_usr could be checked to allow a few minutes edit, even though it would not be 100% sure in case another guest user from the same IP but different location visits the page (still, it's almost impossible).

Author Paul
Lead Lead Developer
#17 · Posted: 20 Oct 2026 15:40
Frédéric:
As a guest can I edit last post ?
You can edit the post only being logged as a member — and you can edit the post only made from this member's account.

Here on miniBB forum, you are allowed to edit your message within 5 minutes since it's posted.

Author Frédéric
Guest
#18 · Posted: 21 Oct 2026 00:05
Hello Paul,

Paul:
Here on miniBB forum, you are allowed to edit your message within 5 minutes since it's posted.
Smart.

Author Frédéric
Guest
#19 · Posted: Today 19:23
Hello Paul,

header("Content-Security-Policy: script-src 'self'; script-src-elem 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self'; etc, etc, etc");

By including this directive at the beginning of every primary PHP script on my main site, I achieve an A+ rating from the MDN tool.

For MiniBB, it is necessary to add 'unsafe-inline' to `script-src`; otherwise, JavaScript code essential for the forum's operation gets blocked.
With this change, MiniBB receives a B+ rating, which is good.

Just have to put this directive at the beginning of index.php and the main admin script.

For me this discussion is achieved.

Thank you.

Page  Page 2 of 2 :  « Previous  1  2 
The Other miniBB Support Forums / The Other /
 Primary miniBB scripts for CSP
Share Link Share Topic's Link
 Click this icon to move up to the quoted message

 ∅ ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

  
 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the File and Picture Attachments add-on: extend your miniBB-forums, attaching images and files.


⇑