Jump to content

Recommended Posts

I am building a website that allows full-screen apps.

 

Basically I have two thoughts:

 

1. iframes (like Facebook)

2. jquery.load

 

The advantage of jquery.load is i can have a consistent navigation and get the app to append into it (will be a sliding out sidebar).

Unlike the iframe, I would have to rely on the developer to implement a standard navigation etc.

 

Would 2 be secure? Noting my whole site being powered by its own API (similar to twitter is).

Or would it be best to try and develop some form of framework developers must adhere to and check all apps against it (similar to Apple) (and use iframes - like Facebook)?

 

Or has someone got an even better idea.

 

Hope that all makes some sense :)

Link to comment
https://forums.phpfreaks.com/topic/262146-would-this-be-secure-or-reccomendable/
Share on other sites

Since you have an API, developers already adhere to something. Why would jQuery.load be insecure? We are going to need more info. If they can't compromise you through your API, I would allow the developers as much freedom as possible. Allowing creativity is key to attracting parties.

@ignace,

 

All the data handling is done via an API, so they could not hook into a PHP function to get a users data, it would have to go via the API, the only cookie stored is one to confirm they are logged in.

 

So it would allow the most creativity, freedom and still allow security (given the above) if I user jQuery/AJAX loads rather than iframe?

 

Although how would adding CSS sheets and jquery plugins go?

 

Thanks

This was moved here as it's a discussion about HTTP, and not PHP.

 

You are asking if whether using an IFRAME or AJAX is more secure. Your API being coded in PHP does not making this a PHP question.

 

The answer, without knowing the details, is that they are equally secure. Both can be manipulated client-side, and both can send a request on behalf of the client. I don't know anything that would make one less secure than the other, they have generally similar behaviour.

 

If you would like to discuss your API in particular, feel free to post in the PHP section :)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.