Find Jobs
Hire Freelancers

Fix No 'Access-Control-Allow-Origin' PHP

$10-30 CAD

Cancelado
Publicado há aproximadamente 7 anos

$10-30 CAD

Pago na entrega
Hi, I am getting No 'Access-Control-Allow-Origin' Error my site, it NGINX. My page is trying to get data from my storage server, its trying to get fonts and some images in CSS Ex. ---------------------------------------------- @font-face { font-family: JCQBAA-BTraffic_1bn; src: url("http://www.***.com/10356/fonts/[login to view URL]") format("woff"); } ----------------------------------------------- data="http://www.***.com/10356/1/[login to view URL]" What I already tried is. * Add header on top of PHP page ----------------------------------------------- $origin=isset($_SERVER['HTTP_ORIGIN'])?$_SERVER['HTTP_ORIGIN']:$_SERVER['HTTP_HOST']; header('Access-Control-Allow-Origin: '.$origin); header('Access-Control-Allow-Methods: POST, OPTIONS, GET, PUT'); header('Access-Control-Allow-Credentials: true'); header('Access-Control-Allow-Headers: Authorization, X-Requested-With'); header('P3P: CP="NON DSP LAW CUR ADM DEV TAI PSA PSD HIS OUR DEL IND UNI PUR COM NAV INT DEM CNT STA POL HEA PRE LOC IVD SAM IVA OTC"'); header('Access-Control-Max-Age: 1'); * Add on Nginx. ----------------------------------------------- location ~* \.(eot|otf|ttf|woff|woff2)$ { add_header Access-Control-Allow-Origin "***.com"; } location / { if ($http_origin ~ "^(http://www.***.com)$") { add_header "Access-Control-Allow-Origin" $http_origin; } } We are trying to get this on both http and https sites.
ID do Projeto: 13017355

Sobre o projeto

8 propostas
Projeto remoto
Ativo há 7 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
8 freelancers estão ofertando em média $33 CAD for esse trabalho
Avatar do Usuário
Hello, I am a UK based developer with plenty of experience in PHP. I have written both new projects and maintain a lot of websites for my clients. Please contact me to get the nginx headers error resolved today.
$88 CAD em 0 dia
5,0 (53 avaliações)
6,4
6,4
Avatar do Usuário
A proposal has not yet been provided
$30 CAD em 1 dia
4,9 (45 avaliações)
5,3
5,3
Avatar do Usuário
can you send me link where you are facing this error are you using your website on hosting or server? thanks
$25 CAD em 1 dia
5,0 (29 avaliações)
4,3
4,3
Avatar do Usuário
I solved this kind of problem few days back. check my completed projects. I think i can solve this.
$30 CAD em 2 dias
4,8 (5 avaliações)
2,5
2,5

Sobre o cliente

Bandeira do(a) CANADA
Patiala, Canada
5,0
19
Método de pagamento verificado
Membro desde set. 7, 2014

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.