How to signal select() to return immediately?

I have a worker thread that is listening to a TCP socket for incoming traffic, and buffering the received data for the main thread to access (let's call this socket A). However, the worker thread...

CSS @font-face not working with Firefox, but working with Chrome and IE

The following code works in Google Chrome beta as well as IE 7. However, Firefox seems to have a problem with this. I'm suspecting it to be a problem of how my CSS files are included, cause I know...

Windows Phone 7 "AG_E_NETWORK_ERROR" for external mp3 using MediaElement?

I've developed a WP7 app that uses the MediaElement to progressively download and play mp3 files from external URIs. I've been testing this on the emulator regularly and it works like a charm......

Chrome extension Cross Domain Request

I know that this has been talked about many times here, and I have read most of these threads but I can't seem to get my script working. Problem is that I am trying to use bitly api to shorten...

Origin is not allowed by Access-Control-Allow-Origin

I'm making an Ajax.request to a remote PHP server in a Sencha Touch 2 application (wrapped in PhoneGap). The response from the server is the following: XMLHttpRequest cannot load...

Foolproof way to detect if iframe is cross domain

I'm trying to determine if any iframe is cross-domain or not. According to the accepted answer in this question:...

CORS preflight request returning "403 Forbidden"; subsequent request then only sending in Chrome

After failure using pluploader in this question, I'm now trying FineUploader. After reading up on CORS, I've implemented various headers on my IIS6 server. What seems to happen is that my script...

Disable firefox same origin policy

I'm developing a local research tool that requires me to turn off Firefox's same origin policy (in terms of script access, I don't really care about cross domain requests). More specifically, I...

Getting the request origin in a Django request

So I'm trying to enable cross origin resource sharing in Django, so I can post to an external site, and it's easy to do when I set response["Access-Control-Allow-Origin"]="*" but I want to...

Foolproof way to detect if this page is INSIDE a cross-domain iframe

An answer to "Foolproof way to detect if iframe is cross domain" describes a method to test if an iframe on a page points to a same-domain or cross-domain page, working around different browsers'...

Socket.io + Node.js Cross-Origin Request Blocked

I'm using node and socket.io to write a chat application. It works fine on Chrome but mozilla gives an error to enable the Cross-Origin Requests. Cross-Origin Request Blocked: The Same Origin...

Piwik: How do I track a visitor (User ID) across domains (PHP/JS)?

I'd like to link the current visitor's IP to a specified user ID (via PHP) which Piwik should track across several (sub)domains. There are several (sub)domains and I want to give a visitor (IP),...

CORS issue on Swagger UI

Can someone tell me why am i getting these errors. GET http://127.0.0.1:9000/api-docs/service.json 200 OK 4ms swagger-ui.js (line 30261) Unable to Load SwaggerUI /api-docs/ (line 83) ...

Parameters sent by a POST request in POSTMAN have always undefined as values in express

I have a node express app (i'm trying to make a rest api) and it has a view index.ejs which contains a form for username, name and message fields (as inputs) and everytime the form is submited,...

Blocked a frame with origin "http://localhost:8080" from accessing a frame with origin "http://pentaho5XXX.com"

I've been about 2 days trying to do something that i can't figure out how to do. The thing is that i am customizing Pentaho user console(which is some kind of web app deployed on a tomcat, which...

Securing a private IP address (https certificate)

I have an unusual use case : a web server on the Internet is serving pages through HTTPS, inside those web pages, there are calls to XMLHttpRequests to a locally connected device (IP over...

Font not loading - CORS says header contains no Access Control but there is

The problem: I am using html generated from one site that is being pushed to another site (different domains). All is working well except the font (used mainly for icons) is not showing up. I am...

Set cookies for cross origin requests

How to share cookies cross origin? More specifically, how to use the Set-Cookie header in combination with the header Access-Control-Allow-Origin? Here's an explanation of my situation: I am...

How to Test CORS header

Our application supports CORS configurations headers. I have configured testApp separately on two different hosts. Both the setups work independent of each other. Application on host1 is...

Not able to do Jmeter UI recording due to CORS error

We are facing CORS issue in Jmeter UI recording: CORS request did not succeed We have website uat.torchmarkets.com which internally calls tradeuat.torchmarkets.com in which has security check...

Workbox Stale-while-revalidate strategy always returns response from network call instead of cache

I am using workbox-webpack-plugin, below is code in webpack config new GenerateSW({ runtimeCaching: [ { urlPattern: new RegExp('^https://devapi\.mysite\.xyz/'), handler:...

Cannot run peer because error when setting up MSP of type bccsp from directory ... Setup error: nil conf reference

I learn to create an application using hyperledger fabrics. This is my reference --> https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html?highlight=script.sh I got an error when...

How to solve CORS issue for Google Cloud CDN & Compute Engine

I have created a Compute Engine - VM and have several websites installed. Also, I have created Network services - Load balancing Backend configuration: Created Backend services and join the...

Why after --disable-web-security and deleting x-frame-options header this error still showing?

I'm creating a webapp in electron, a web-crawler with a neural network, which needs all webSecurities to be disabled i tried modifying the headers...

Same-origin request causes “Access-Control-Allow-Origin doesn’t match” error, though origin of course matches. Note: has CSP policy w/ "sandbox"

When the exact same URL is being used in both by CORS and its web pages' URL, I still get the same error messages in my Firefox development console. Browser console messages were: Cross-Origin...

Parsing in JS gets me a SyntaxError: JSON.parse: unexpected character

An error pop out when I try to parse a JSON object (or at least I guess it should be an object since there's "content-type": "application/json in the response's header). Here is the full error...

.Net Core Cross Site Cookie Not Being Set by Chrome or Firefox

I am trying to use a cookie sent from an Asp.Net Core web api site in a cross-site configuratioun. I can see the cookie arrive in the Response, but from what I can tell, it's not being set by...

Laravel Livewire SyntaxError - Unexpected token < in JSON and Internal Server Error 500

I have implemented livewire, serving as a dynamic table creation in my laravel application. However, sometimes, there's this error appearing on the console and the livewire component stops working...

iFrame has fixed width of 300px, without any styling defining 300px

I'm using the iframe-resizer package to dynamically change the size of an iframe depending on content. However, before even trying any dynamic resizing, I run into an issue with the basic iframe:...