Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8729595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:51:38+00:00 2026-06-13T08:51:38+00:00

I am trying to implement cross domain authentication using HTML5. The domain 2 will

  • 0

I am trying to implement cross domain authentication using HTML5.

The domain 2 will post a message to domain1 Iframe to get the data, and the domain1 will check the origin and get the data. The user data will be the email address.

Can someone tamper the origin property of the message(eg by changing the hosts file), pretend as domain2, post a message to domain1 Iframe, and get the email address of the user?

Thanks

Tuco

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:51:39+00:00Added an answer on June 13, 2026 at 8:51 am

    Yes, the user can tamper with it.

    Javascript is executed in the web browser of the user. Everything which happens on the client side can be controlled and manipulated by the user. The user doesn’t even have to manipulate the host file for that, there are many other ways to forge HTTP POST requests.

    Anything which must not be manipulated by the user must be done on the server side.

    When you need cross-domain authentication, you usually generate a long, random ID number (aka a token) on the server which hosts domain1. This token is sent both to the user and to the other server which hosts domain2. When the user then visits domain2, it can provide the token it got from domain1 (usually as part of the URL which leads from domain 1 to domain2). This allows domain2 to identify the user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement cross join using hadoop in java. Both sides of
I am trying implement the Data transformation using Reflection 1 example in my code.
I'm using Data.Serialize.Get and am trying to define the following combinator: getConsumed :: Get
I am trying implement a most recent widget into my tumblr post. So far,
I am trying to make a cross domain HTTP request to WCF service (that
I'm trying to implement an API that performs some really lengthy tasks using a
Getting this error on chrome while trying to make cross-domain requests with GWT application.
I am trying to implement a 'remember me' system with cookies that will remember
I'm having a hard time trying to make jquery.form with a cross-domain request. I'm
I am trying to implement a trie data structure in F#. I am having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.