Make third-party cookie become first-party cookie

Posted on 2014-08-22
Last Modified: 2014-09-25
We have a Drupal website embedded to other websites.
For example, the websites can embed our website in their website as following:
<iframe src="drupal_site_url"></iframe>

In this situation, Drupal site cookie becomes third-party cookie.

Now more people block third-party cookie, so our Drupal site can not function inside
the other websites this way.

We have a control for the websites which embed our Drupal site.
For example, we can modify the way like JavaScript, iframe.... to embed the Drupal site.
Is there a method to make our Drupal site cookie become first-party cookie?
Question by:drupal_100
    1 Comment
    LVL 107

    Accepted Solution

    I don't think so.  A better design would be to have your "drupal_site_url" turned into a "drupal_site_api" so that you can produce a consistent and versioned API response to the request.  Then web sites that want your content can access the API via cURL or similar and get the information in a way that doesn't trigger security alerts.  You might want to consider publishing via JSON.

    Information on APIs:

    Information on HTTP client/server protocols:

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now