Failed to load chunklist_w1087592622.m3u8 in Video.JS - video.js

Failed to load chunklist_w1087592622.m3u8?e=1534967576&h=3cd169c3f9cf89c3ce679ecc0a989f29: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://example.com/' is therefore not allowed access. The response had HTTP status code 403.
i am generating Secure .m3u8 stream with validity 90sec (https://example.com/bunny/playlist.m3u8?e=1535202970&h=241c3c4ab12b59ca7ac1302497522187)
After 90Sec it get invalid in cansol shows..
video.js:7187 GET https://example.com/bunny/chunklist_w1087592622.m3u8?e=1534967576&h=3cd169c3f9cf89c3ce679ecc0a989f29 403 (Forbidden)
(index):1 Failed to load https://example.com/bunny/chunklist_w1087592622.m3u8?e=1534967576&h=3cd169c3f9cf89c3ce679ecc0a989f29: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://example.com/' is therefore not allowed access. The response had HTTP status code 403.
video.js:128 VIDEOJS: WARN: Problem encountered with the current HLS playlist. Trying again since it is the final playlist.
how to get stream continuous without refresh..

Related

Error while adding instance or server from teleport UI

getting curl: (22) The requested URL returned error: 404 Not Found
error while adding instance or server from teleport ui

Minio uploads through the web interface and API receives "Unauthorized request."

I can successfully upload files to my Minio server using mc command line client (logged in as root):
./mc cp roobina.jpg minio/mag
roobina.jpg: 63.50 KiB / 63.50 KiB
But when I try to upload a file to a bucket using minio's own web interface I receive this error:
Unauthorized request.
When using api (in a php application using AmazonS3 libraries), I receive this error:
Error:Error executing "PutObject" on "https://s3.***.net/clbu/public/4d/4b/d1ad580690058a636ad58e5af931541336ec.jpg"; AWS HTTP error: Client error: `PUT https://s3.***.net/clbu/public/4d/4b/d1ad580690058a636ad58e5af931541336ec.jpg` resulted in a `403 Forbidden` response:
Forbidden (truncated...) Unable to parse error information from response - Error parsing XML: String could not be parsed as XML
Could someone please help?
After looking at different possible causes, I found that mod_security of apache (used as reverse proxy of minio:9000) was interfering with uploads causing the problem.
I disabled mod_security on the reverse proxy account and the problem is now solved.

Strange case of HTTP headers: If-Modified-Since and If-None-Match

As part of a test application, I'm making HTTP requests to webpages. On receiving a response, I save the current date/time (GMT) and ETag header for subsequent requests. However, for some strange reason, some host servers are not validating the If-Modified-Since and If-None-Match headers on subsequent requests.
One such example is this webpage: www.foxsports.com/nba/cleveland-cavaliers-team-news (running Apache). It always returns the full body with a 200-Ok HTTP status, when a 304-NotModified status is expected, hence ignoring the If-Modified-Since and If-None-Match headers sent in the request. I tested it using curl and online Hurl.
Any ideas why the sent request headers are not validated by some host servers?

CORS request not valid - missing headers?

I am trying to upload an image to a finagle (netty) server. For the OPTIONS request I return the following:
curl -X OPTIONS http://localhost:8686/images -i
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST
Browser (FireBug): http://s15.postimg.org/vtdzyfshn/Screen_Shot_2014_09_02_at_9_49_05_PM.png
The following POST request fails with
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote
resource at http://localhost:8686/images. This can be fixed by moving the resource
to the same domain or enabling CORS.
FireBug 1 (Console): http://s30.postimg.org/9utq4ridt/Screen_Shot_2014_09_02_at_9_53_41_PM.png
FireBug 2 (Net Tab): http://s16.postimg.org/jyblxfcv9/Screen_Shot_2014_09_02_at_9_54_37_PM.png
FireBug 3 (Net Tab - POST): http://s14.postimg.org/e8czua2wh/Screen_Shot_2014_09_02_at_9_54_47_PM.png
Any idea what I am missing?
(I am using this upload script: http://www.extremecss.com/creating-asynchronous-file-upload-system-using-html5-file-api/
You have to return the CORS headers (Access-Control-Allow-Origin: *) within the response header to your POST as well, instead of just within the OPTIONS response.

php fopen: failed to open stream: HTTP request failed! HTTP/1.0 403

I am receiving an error message in PHP 5 when I try to open a file of a different website. So the line
fopen("http://www.domain.com/somef­ile.php", r)
returns an error
Warning: fopen(www.domain.com/somefile.php) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in D:\xampp\htdocs\destroyfiles\index.php on line 2
Your PHP app failed to authenticate. The request URI should be:
http://user:password#www.domain.com/somefile.php
It looks like your PHP client (i.e. the server on which your PHP script is running) isn't allowed to get http://www.domain.com/somef­ile.php, by the server on www.domain.com.