Entrance Chat Gallery Guilds Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 05, 2025 - @568.19 (what is this?)
Activity rating: Four Stars Posts & Arts: 50/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: :ha: :pc: Hello Melonland! :pc: :happy: Guild Events: Melon Jam 2025

+  MelonLand Forum
|-+  Forum Hub
| |-+  ⛄︎ ∙ MelonLand Info & Questions
| | |-+  BUG WATCH! - If you see a bug report it here!


« previous next »
Pages: 1 ... 14 15 [16] Print
Author Topic: BUG WATCH! - If you see a bug report it here!  (Read 43360 times)
Dan Q
Jr. Member ⚓︎
**
View Profile WWW


I have no idea what I am doing
⛺︎ My Room
Itch.io: My Games
RSS: RSS

« Reply #225 on: November 04, 2025 @481.66 »

Two suggestions:

Update advice on "surf no embed" page?

The Surf Navigator's "I can't embed this in a frame" page contains the following text:

Quote
If you are the site owner, you'll need to enable "X-Frame-Options: ALLOW-FROM" in your web server configuration to fix this error!

This is probably outdated advice. The ALLOW-FROM directive isn't supported by any modern browser except Firefox for Android. People should probably be pointed in the direction of Content-Security-Policy: frame-ancestors instead.

Update backend code detecting non-embedability?

Possibly the backend code is also looking for this header, too, in order to set up the allowsEmbed attribute in surfClubSites.json?

If both an X-Frame-Options: and a Content-Security-Policy: header are present, and the Content-Security-Policy: header contains a frame-ancestors directive, then the latter takes precedence!

For example, https://danq.me/ exposes the following headers:

Code
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: [...] frame-ancestors 'self' https://melonland.net; [...] 

These headers say:

  • If a browser understands only the X-Frame-Options: header, only allow danq.me to load danq.me in a frameset
  • But if the browser understands the more-modern Content-Security-Policy:, also allow danq.me to be loaded in a frameset by melonland.net

That latter directive ought to make the surf navigator work. In fact, it does, if I manually hack the src of the <iframe> with my debugger (you can try this yourself by going to https://melonland.net/surf-navigator?site=3133 and repointing the <iframe> from small-pages/surf-no-embed.html to https://danq.me/ - it should work)! But I'm guessing that the backend code is seeing my "fallback" X-Frame-Options: SAMEORIGIN and disallowing it from being shown?

Hope that all makes sense. Sorry I keep making work for you!
Logged


Artifact Swap: I met Dan Q on Melonland!Bananas are better than tomatos!PolyamoryJoined 2025!Lurby
Pages: 1 ... 14 15 [16] Print 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi