[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Make third-party cookie become first-party cookie

Posted on 2014-08-22
3
Medium Priority
?
235 Views
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?
0
Comment
Question by:drupal_100
1 Comment
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 2000 total points
ID: 40279866
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:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_12239-Introduction-to-Application-Programming-Interfaces.html

Information on HTTP client/server protocols:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/A_11271-Understanding-Client-Server-Protocols-and-Web-Applications.html
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

873 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