Skip to content
New issue

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

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

Already on GitHub? # to your account

codebird-cors-proxy not working with nginx server #230

Open
chinna-magapu opened this issue May 8, 2018 · 4 comments
Open

codebird-cors-proxy not working with nginx server #230

chinna-magapu opened this issue May 8, 2018 · 4 comments
Assignees

Comments

@chinna-magapu
Copy link

Hi, I am trying to implement the codebird-cors-proxy in nginx server. But it was not working
I ahve added
cb.setProxy('https://twitterproxy.sample.xyz');

and the request token api
https://twitterproxy.sample.xyz/oauth/request_token is getting 403 ( access is forbidden) and then I have updated the nginx config with the below code

`# nginx configuration

location / {
rewrite ^/$ http://www.jublo.net/ redirect;
rewrite ^(.*)$ /codebird-cors-proxy.php break;
}`

hen the api url getting 405 error but its not working at all in my case.

can anyone suggest me where I am missing to make it work.

Thanks in Advance.

@joshuaatkins
Copy link
Contributor

joshuaatkins commented May 8, 2018

hi @chinna-magapu

This is our configuration for nginx, if it helps;

location /codebird/ {
        try_files $uri $uri/ /codebird/codebird-cors-proxy.php$is_args$args;
}

@chinna-magapu
Copy link
Author

chinna-magapu commented May 9, 2018

Hi @joshuaatkins , Thanks for your response.

I have updated the nginx config with your rewrite rules. still, I am getting the same 405 error. I am using this with angular it still fails in the options request with 405 status.

@mynetx
Copy link
Member

mynetx commented Sep 15, 2018

@joshuaatkins Something for your debugging.

@joshuaatkins
Copy link
Contributor

@chinna-magapu did you manage to solve this? I am happy to pick back up if not.

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

No branches or pull requests

3 participants