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

CORS not work in browser #10

Closed
njzydark opened this issue Jan 29, 2022 · 3 comments
Closed

CORS not work in browser #10

njzydark opened this issue Jan 29, 2022 · 3 comments

Comments

@njzydark
Copy link

Problem

When send POST request from browser, theOPTIONS request will send first as the preflighted request https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#preflighted_requests, and the CORS is happen, because the server only set Access-Control-Allow-Origin in https://github.com/flatz/ps4_remote_pkg_installer/blob/master/server.c#L1493

Solution

sb_send_header(s, "Access-Control-Allow-Origin", "*");
sb_send_header(s, "Access-Control-Allow-Headers", "*");
sb_send_header(s, "Access-Control-Allow-Methods", "*");

Because I can't build this project by myself without SDK(I try use OpenOrbis-PS4-Toolchain, because I'm not very familiar with c language, I can't finish the related adjustment ), Can you provide the download address of the SDK?

@saeedmou
Copy link

Use this:
This is a OOSDK port of flat's ps4_remote_pkg_installer, all credit goes to them and their amazing work!
https://github.com/Backporter/ps4_remote_pkg_installer-OOSDK

@njzydark
Copy link
Author

Use this: This is a OOSDK port of flat's ps4_remote_pkg_installer, all credit goes to them and their amazing work! https://github.com/Backporter/ps4_remote_pkg_installer-OOSDK

I've tried it, it doesn't compile successfully on macOS, there are many errors

@njzydark
Copy link
Author

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

Successfully merging a pull request may close this issue.

2 participants