HTTP 401 for osfruntime_strings.js while loading add-in - outlook

I'm facing HTTP 401 for osfruntime_strings.js while loading my OWA add-in on IE and Edge browser. This is working fine on Firefox and Chrome browser.
If I try to load the url on IE/Edge browser in a separate tab then there's no issue, I get HTTP 200.
As this is the first web request made when I try to load my add-in and it fails, my add-in UI doesn't load There is no web request made to load the add-in html page and other subsequent web requests.
Is this something that needs to be fixed on the add-in side or on the Exchange server side.

Related

Intercepting requests sent by iframe

I am trying to intercept all web requests using by Puppeteer-Sharp but it is not working properly if the request sent by IFrame which is located on the page. For instance, After navigated this link, I clicked the video link since the video is in the iframe(maybe this is not the cause, this is only my hypothesis), the new web requests sent by IFrame did not intercept but the others were intercepted. When I checked it on the Chrome Developer Tools I was able to see what I am looking for and also more requests.
By the way, I set Request Interception as true as below:
await page.SetRequestInterceptionAsync(true);
and I registered for the PageRequest event as below:
page.Request += Page_Request
Is there any other setting or missing setup?

Safari sends fetch ajax requests on url bar autofilled

my client side react app is running on http://localhost:3000 and my node js server is running on http://localhost:8080. When client url is loaded, it sends GET /auth/user 304 0.494 ms - - fetch ajax request to load user(on react componentDidMount function). Problem is, when typing 'l' on Safari browser and url is autofilled with 'http://localhost:3000', it is confirmed that my server get the same request as GET /auth/user, before I even press enter key and before the client page is loaded. In Chrome it doesn't. Why Safari browser sends ajax request when user didn't visit the page and just typed part of its url? Is it a designed behavior?
As a result of tracking the reason for 6 hours. I figured out Safari implements cached ajax request differently from other web browsers. When Safari has client url data which has records of requesting ajax to external api, Safari sends the same ajax request just before user visits the client url page(when url is being typed and auto-suggested) to check if the response is 200(different) or 304(same). If the response is 304(same) and client page is loaded actually, Safari doesn't send ajax request again. This can be very annoying in the user login process, because the user data is loaded before actual authentication process is complete(user data response is 304), so client app remains unauthenticated when browser is authenticated. The solution I landed was adding an extra query parameter when fetching user data( '${root}/auth/user?' + 'nocache= new Date.getTime()' ) to prevent Caching AJAX in Safari browser. Hope it helps someone who faces the same problem.

Why do my website's post-page-load Ajax calls fail in the Facebook In-App Browser?

My website uses Ajax to report the user's progress back to the server while the user stays on the same webpage. This works fine on all browsers except the Facebook In-App Browser (FB IAB). Why?
If your web server uses cookies when processing Ajax requests, you will have the following problem:
After a web page loads, FB IAB doesn't send cookies to the server for Ajax calls. I consider this a bug.
A workaround is to send all required data in the querystring instead.

Get post data from a website using firefox addon or any other tool

I want to get the post request data of a website. Is there any tool or addon for this? I can't see in the browser firebug as the page refreshes when the browser sends a request.
Install Httpfox.
You can see all the incoming and outgoing http traffic with it

It is possible to view what httprequest was sent by the browser when submitting a form?

When I submit a form on a site I want to know what HttpRequest was sent from the browser to the server, is this possible from any browser, or is there any firefox addon to do this ?
IE9 has this functionality in the Developer Tools (press F12). In Firefox you can use the extension Firebug. For Opera you can use Dragonfly.
There is also an application that has much more functionality and allows you to change any values in the request: Fiddler. Fiddler works with pretty much all browsers on Windows.
For Firefox there is the Live HTTP Headers extension.
For Internet Explorer, there is the ieHTTPHeaders extension which shows you HTTP requests and responses.

Resources