question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi there,

I am trying to embed the label studio UI via iframe and I receive the following error: 'X-Frame-Options' set to 'deny' which I think is related to the header. Would it be possible to allow for embedding the UI by removing this type of header?

Thanks a lot in advance for your consideration

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
robert-s-leecommented, Jul 6, 2022

@nikitabelonogov tested a change on https://github.com/heartexlabs/label-studio/commit/b2587f2468c7a238a5e336db9bd3530a192ca9e5 to confirm X_FRAME_OPTIONS = 'allow-from *' in label_studio.py does unblock this.

1reaction
robert-s-leecommented, Aug 4, 2022

@makseq and @nikitabelonogov reopening this as setting X-Frame-Options works on a laptop but does not work when running in the cloud. working with @danbider on integrating label studio in an app built using https://lightning.ai/ app.

Any thoughts on making the change on the Django side so that x-frame-options are removed?

The setup in Django is https://docs.djangoproject.com/en/4.0/ref/clickjacking/

from django.views.decorators.clickjacking import xframe_options_exempt

@xframe_options_exempt
def ok_to_load_in_a_frame(request):
    return HttpResponse("This page is safe to load in a frame on any site.")
Read more comments on GitHub >

github_iconTop Results From Across the Web

Change or delete a header or footer on a single page
Change or delete the header or footer from the first page · Double-click the first page header or footer area. · Check Different...
Read more >
How to Remove Header in Word - CustomGuide
Once you've added a header or footer, you can easily remove it if you find that it isn't what you want. Click the...
Read more >
How to delete header or footer in a Word document - YouTube
Let's learn 2 ways to remove a single header or all headers in Word: (1) for documents with only 1 section or for...
Read more >
How to remove all headers and footers in Word? - ExtendOffice
1. Open the Word file and go to the first page that you want to remove the header and footer, and then double-click...
Read more >
Headers.delete() - Web APIs - MDN Web Docs
The delete() method of the Headers interface deletes a header from the current Headers object. This method throws a TypeError for the following ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found