Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New serveur Encoder problem installation - Blocking a Cross-Origin Request: The "Same Origin" #44

Closed
gamersalpha opened this issue Mar 25, 2018 · 11 comments

Comments

@gamersalpha
Copy link

gamersalpha commented Mar 25, 2018

Hello there, i have a problem with my new encoder serveur install :

in french :

Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://youtube.namel.fr//login. Raison : l’en-tête CORS « Access-Control-Allow-Origin » est manquant.

google traduction :

Blocking a Cross-Origin Request: The "Same Origin" policy does not allow you to view the remote resource located on https://youtube.namel.fr//login. Reason: The CORS header "Access-Control-Allow-Origin" is missing.

i m the installation page : i m using Firefox Dev to see log error :

image

i make some seearch about this error,

it's look like u can make a ajax request an other domain of u website who u make the requete ?

for me :

youphptube site is : https://youtube.domaine.fr
youtphptube-encoder is https://youtube-encoder.domaine.fr

so i m go in the installer page and i have this erro ?

what is wrong please ?

@gamersalpha gamersalpha changed the title New serveur Encoder problem installation New serveur Encoder problem installation - Blocking a Cross-Origin Request: The "Same Origin" Mar 25, 2018
@DanielnetoDotCom
Copy link
Member

DanielnetoDotCom commented Mar 26, 2018

Hi actually you can, but your server must be configured to allow it

we add the .htaccess configuration to allow this request

https://github.com/DanielnetoDotCom/YouPHPTube-Encoder/blob/bb8dc65c448130fa142b3ff235298b8b5d6ea908/.htaccess#L2

https://github.com/DanielnetoDotCom/YouPHPTube/blob/50caf7409aae152a7ac3c9255b0d7fb251871c36/.htaccess#L16

It works on our side, maybe the server you are using have an specific configuration to block it

@gamersalpha
Copy link
Author

Hello,

i m using nginx to access to my server in https.

revers proxy, works cool,

i have to found how pass this problem

@gamersalpha
Copy link
Author

crazy thinks i can't found a solution :'(

@gamersalpha
Copy link
Author

do u have a solution to create the config files without the internet page ?

can i create myself the config please ?

can someone send me the config files, i will modifie it and adding directly on my video directory

thanks to all

@DanielnetoDotCom
Copy link
Member

My Encoder config file looks like this:
...

<?php
$global['webSiteRootURL'] = 'http://127.0.0.1/YouPHPTube-Encoder/';
$global['systemRootPath'] = '/var/www/html/YouPHPTube-Encoder/';

$global['disableConfigurations'] = false;
$global['disableBulkEncode'] = false;

$mysqlHost = 'localhost';
$mysqlUser = 'root';
$mysqlPass = '';
$mysqlDatabase = 'youPHPTube-Encoder';

$global['allowed'] = array('mp4', 'avi', 'mov', 'mkv', 'flv', 'mp3', 'wav', 'm4v', 'webm', 'wmv');

/**
 * Do NOT change from here
 */

require_once $global['systemRootPath'].'objects/include_config.php';

@FathiBenNasr
Copy link

Thank you,
This solved my same problem here (+ manual tables creation).

@DanielnetoDotCom
Copy link
Member

Great :)

@gamersalpha
Copy link
Author

ok where is the databas creation files please

@gamersalpha
Copy link
Author

i have a blank page with no information

u closed to fast

@DanielnetoDotCom
Copy link
Member

Database creation https://github.com/DanielnetoDotCom/YouPHPTube-Encoder/blob/master/install/database.sql

Check your log file for the blank page

@gamersalpha
Copy link
Author

ok works with this but i have a new problem here

the same here -- #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants