We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't know how to set cros, Allowed method & headers. I found a crate but it doesn't work anymore, the code can't be compiled. https://github.com/ntex-rs/ntex-extras/tree/master/ntex-cors. Then I found another crate. https://crates.io/crates/clia-ntex-cors-mod It worked. But not official website certification. Is there any way and solution ?
Below is what I try to do but it doesn't work.
cargo.toml
The text was updated successfully, but these errors were encountered:
Hey, add this in your Cargo.toml to have the official version.
Cargo.toml
[patch.crates-io] ntex-cors = { git = "https://github.com/ntex-rs/ntex-extras.git" }
Then it's been used as a middleware for example:
web::HttpServer::new(move || { web::App::new() .wrap(Cors::new().finish()) });
If you add me on the package admin list @fafhrd91 i can update it on crates.io
Sorry, something went wrong.
@leon3s you should be able to publish ntex-cors
I just published it, you should be able to install ntex-cors 0.3.0 from crates.io
ntex-cors 0.3.0
Don't forget to take a look at the documentation
It worked. Thanks for your help
No branches or pull requests
I don't know how to set cros, Allowed method & headers. I found a crate but it doesn't work anymore, the code can't be compiled. https://github.com/ntex-rs/ntex-extras/tree/master/ntex-cors. Then I found another crate. https://crates.io/crates/clia-ntex-cors-mod It worked. But not official website certification. Is there any way and solution ?
Below is what I try to do but it doesn't work.
![image](https://private-user-images.githubusercontent.com/49558643/238853052-143f482c-8ace-4b4d-b87d-17f4326a5650.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNTkyMTQsIm5iZiI6MTcyMTI1ODkxNCwicGF0aCI6Ii80OTU1ODY0My8yMzg4NTMwNTItMTQzZjQ4MmMtOGFjZS00YjRkLWI4N2QtMTdmNDMyNmE1NjUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDIzMjgzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVjZWM1YTNlMjFlZjI4YTE2OWZhNDk0YmVlMjllZjQyOThjNjNkZDhiYjViYzAyZDZhODE4NTY4ZjgwOGYyN2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.eh885agTH0ZTDJKjRwwrOloILJ3VqHaY9GULTXPtR_A)
cargo.toml
![image](https://private-user-images.githubusercontent.com/49558643/238853840-9d575970-5057-4ad8-84c5-5f24ba3134e3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNTkyMTQsIm5iZiI6MTcyMTI1ODkxNCwicGF0aCI6Ii80OTU1ODY0My8yMzg4NTM4NDAtOWQ1NzU5NzAtNTA1Ny00YWQ4LTg0YzUtNWYyNGJhMzEzNGUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDIzMjgzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUwNzAwY2ExNDI4ZWJmZGI5NTc0YzUxNmRmMjM4NDgwNjk5NjgwNDU3MzE2M2ExNDhkNjVlZDhhYzUzNzRhMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Hr9WP6Ntqsh7Fwk03RUkageAVQ7thLyL3iHA1KmiEU4)
The text was updated successfully, but these errors were encountered: